Skip to content

Commit 4e417e0

Browse files
committed
chore: format toml
1 parent 06c2022 commit 4e417e0

File tree

7 files changed

+89
-78
lines changed

7 files changed

+89
-78
lines changed

Cargo.toml

Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
[workspace]
2+
resolver = "3"
3+
members = [
4+
"arrow2bytes",
5+
"guests/bundle",
6+
"guests/python",
7+
"guests/rust",
8+
"host",
9+
]
10+
111
[workspace.package]
212
version = "0.1.0"
313
edition = "2024"
414
license = "MIT OR Apache-2.0"
515

6-
[workspace]
7-
members = [
8-
"arrow2bytes",
9-
"guests/bundle",
10-
"guests/python",
11-
"guests/rust",
12-
"host",
13-
]
14-
resolver = "3"
15-
1616
[workspace.dependencies]
1717
anyhow = { version = "1.0.100", default-features = false }
1818
arrow = { version = "55.2.0", default-features = false, features = ["ipc"] }
@@ -25,28 +25,29 @@ datafusion-udf-wasm-arrow2bytes = { path = "arrow2bytes", version = "0.1.0" }
2525
datafusion-udf-wasm-bundle = { path = "guests/bundle", version = "0.1.0" }
2626
datafusion-udf-wasm-guest = { path = "guests/rust", version = "0.1.0" }
2727
datafusion-udf-wasm-python = { path = "guests/python", version = "0.1.0" }
28-
sqlparser = { version = "0.55.0", default-features = false, features = ["std", "visitor"] }
2928
http = { version = "1.3.1", default-features = false }
3029
hyper = { version = "1.7", default-features = false }
31-
tokio = { version = "1.48.0", default-features = false }
3230
pyo3 = { version = "0.27.1", default-features = false, features = ["macros"] }
31+
sqlparser = { version = "0.55.0", default-features = false, features = [
32+
"std",
33+
"visitor"
34+
] }
3335
tar = { version = "0.4.44", default-features = false }
3436
tempfile = { version = "3.23.0", default-features = false }
37+
tokio = { version = "1.48.0", default-features = false }
3538
wasip2 = { version = "1" }
36-
wasmtime = { version = "38.0.3", default-features = false, features = ["async", "cranelift"] }
39+
wasmtime = { version = "38.0.3", default-features = false, features = [
40+
"async",
41+
"cranelift"
42+
] }
3743
wasmtime-wasi = { version = "38.0.3", default-features = false }
38-
wasmtime-wasi-http = { version = "38.0.3", default-features = false, features = ["default-send-request"] }
44+
wasmtime-wasi-http = { version = "38.0.3", default-features = false, features = [
45+
"default-send-request"
46+
] }
3947
wasmtime-wasi-io = { version = "38.0.3", default-features = false }
40-
wit-bindgen = { version = "0.47", default-features = false, features = ["macros"] }
41-
42-
[workspace.lints.rust]
43-
missing_copy_implementations = "deny"
44-
missing_debug_implementations = "deny"
45-
missing_docs = "deny"
46-
rust_2018_idioms = { level = "deny", priority = -1 }
47-
unexpected_cfgs = "deny"
48-
unreachable_pub = "deny"
49-
unused_crate_dependencies = "deny"
48+
wit-bindgen = { version = "0.47", default-features = false, features = [
49+
"macros"
50+
] }
5051

5152
[workspace.lints.clippy]
5253
allow_attributes = "warn"
@@ -59,6 +60,15 @@ todo = "deny"
5960
undocumented_unsafe_blocks = "deny"
6061
use_self = "deny"
6162

63+
[workspace.lints.rust]
64+
missing_copy_implementations = "deny"
65+
missing_debug_implementations = "deny"
66+
missing_docs = "deny"
67+
rust_2018_idioms = { level = "deny", priority = -1 }
68+
unexpected_cfgs = "deny"
69+
unreachable_pub = "deny"
70+
unused_crate_dependencies = "deny"
71+
6272
[workspace.lints.rustdoc]
6373
bare_urls = "deny"
6474
broken_intra_doc_links = "deny"
@@ -78,10 +88,9 @@ datafusion-sql = { git = "https://github.com/influxdata/arrow-datafusion.git", r
7888
cranelift-codegen.opt-level = 3
7989
cranelift-entity.opt-level = 3
8090
cranelift-frontend.opt-level = 3
81-
regalloc2.opt-level = 3
82-
wasmparser.opt-level = 3
83-
wasmtime-internal-cranelift.opt-level = 3
84-
8591
# faster insta snapshots
8692
insta.opt-level = 3
93+
regalloc2.opt-level = 3
8794
similar.opt-level = 3
95+
wasmparser.opt-level = 3
96+
wasmtime-internal-cranelift.opt-level = 3

arrow2bytes/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version.workspace = true
44
edition.workspace = true
55
license.workspace = true
66

7-
[lints]
8-
workspace = true
9-
107
[dependencies]
118
arrow.workspace = true
9+
10+
[lints]
11+
workspace = true

deny.toml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,49 @@
55
version = 2
66
yanked = "deny"
77
ignore = [
8-
# paste is unmaintained but does not have any known issues;
9-
# there is no replacement at this time
10-
"RUSTSEC-2024-0436",
8+
# paste is unmaintained but does not have any known issues;
9+
# there is no replacement at this time
10+
"RUSTSEC-2024-0436",
1111
]
1212
git-fetch-with-cli = true
1313

1414
[licenses]
1515
unused-allowed-license = "deny"
1616
allow = [
17-
"Apache-2.0",
18-
"Apache-2.0 WITH LLVM-exception",
19-
"BSD-2-Clause",
20-
"BSD-3-Clause",
21-
"CC0-1.0",
22-
"CDLA-Permissive-2.0",
23-
"ISC",
24-
"MIT",
25-
"Unicode-3.0",
26-
"Zlib",
17+
"Apache-2.0",
18+
"Apache-2.0 WITH LLVM-exception",
19+
"BSD-2-Clause",
20+
"BSD-3-Clause",
21+
"CC0-1.0",
22+
"CDLA-Permissive-2.0",
23+
"ISC",
24+
"MIT",
25+
"Unicode-3.0",
26+
"Zlib",
2727
]
2828

2929
[[licenses.clarify]]
3030
name = "ring"
3131
expression = "BSD-4-Clause AND ISC AND MIT AND OpenSSL"
3232
license-files = [
33-
# https://github.com/briansmith/ring/blob/95948b3977013aed16db92ae32e6b8384496a740/LICENSE
34-
{ path = "LICENSE", hash = 0xbd0eed23 },
33+
# https://github.com/briansmith/ring/blob/95948b3977013aed16db92ae32e6b8384496a740/LICENSE
34+
{ path = "LICENSE", hash = 0xbd0eed23 },
3535
]
3636

3737
[bans]
3838
multiple-versions = "allow"
3939
wildcards = "deny"
4040
allow-wildcard-paths = true
4141
deny = [
42-
# We are using rustls as the TLS implementation, so we shouldn't be linking
43-
# in OpenSSL too.
44-
#
45-
# If you're hitting this, you might want to take a look at what new
46-
# dependencies you have introduced and check if there's a way to depend on
47-
# rustls instead of OpenSSL (tip: check the crate's feature flags).
48-
{ name = "openssl-sys" },
49-
# Use stdlib ( https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html )
50-
{ name = "atty" },
42+
# We are using rustls as the TLS implementation, so we shouldn't be linking
43+
# in OpenSSL too.
44+
#
45+
# If you're hitting this, you might want to take a look at what new
46+
# dependencies you have introduced and check if there's a way to depend on
47+
# rustls instead of OpenSSL (tip: check the crate's feature flags).
48+
{ name = "openssl-sys" },
49+
# Use stdlib ( https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html )
50+
{ name = "atty" },
5151
]
5252

5353
[sources]
@@ -57,5 +57,5 @@ unused-allowed-source = "deny"
5757

5858
[sources.allow-org]
5959
github = [
60-
"influxdata",
60+
"influxdata",
6161
]

guests/bundle/Cargo.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ version.workspace = true
44
edition.workspace = true
55
license.workspace = true
66

7-
[lints]
8-
workspace = true
9-
10-
[features]
11-
example = ["dep:datafusion-udf-wasm-guest"]
12-
python = ["dep:datafusion-udf-wasm-python"]
13-
147
[build-dependencies]
158
# these need to be marked as build dependencies so the build script reruns whenever they change
169
datafusion-udf-wasm-guest = { workspace = true, optional = true }
1710
datafusion-udf-wasm-python = { workspace = true, optional = true }
18-
1911
# the actual build-time dependencies
2012
serde_json = "1.0.145"
13+
14+
[features]
15+
example = ["dep:datafusion-udf-wasm-guest"]
16+
python = ["dep:datafusion-udf-wasm-python"]
17+
18+
[lints]
19+
workspace = true

guests/python/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ version.workspace = true
44
edition.workspace = true
55
license.workspace = true
66

7-
[lints]
8-
workspace = true
9-
107
[lib]
118
crate-type = ["cdylib"]
129

@@ -22,3 +19,6 @@ wasip2.workspace = true
2219
[build-dependencies]
2320
tar.workspace = true
2421
walkdir = "2.5.0"
22+
23+
[lints]
24+
workspace = true

guests/rust/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ version.workspace = true
44
edition.workspace = true
55
license.workspace = true
66

7-
[lints]
8-
workspace = true
7+
[[example]]
8+
crate-type = ["cdylib"]
9+
name = "add_one"
910

1011
[dependencies]
1112
arrow.workspace = true
@@ -14,6 +15,5 @@ datafusion-expr.workspace = true
1415
datafusion-udf-wasm-arrow2bytes.workspace = true
1516
wit-bindgen.workspace = true
1617

17-
[[example]]
18-
name = "add_one"
19-
crate-type = ["cdylib"]
18+
[lints]
19+
workspace = true

host/Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@ version.workspace = true
44
edition.workspace = true
55
license.workspace = true
66

7-
[lints]
8-
workspace = true
9-
107
[dependencies]
118
anyhow.workspace = true
129
arrow.workspace = true
1310
datafusion.workspace = true
1411
datafusion-common.workspace = true
1512
datafusion-expr.workspace = true
16-
datafusion-udf-wasm-arrow2bytes.workspace = true
1713
datafusion-sql.workspace = true
18-
sqlparser.workspace = true
14+
datafusion-udf-wasm-arrow2bytes.workspace = true
1915
http.workspace = true
2016
hyper.workspace = true
2117
rand = { version = "0.9" }
2218
siphasher = { version = "1", default-features = false }
19+
sqlparser.workspace = true
2320
tar.workspace = true
2421
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "sync"] }
2522
wasmtime.workspace = true
@@ -28,7 +25,13 @@ wasmtime-wasi-http.workspace = true
2825
wasmtime-wasi-io.workspace = true
2926

3027
[dev-dependencies]
31-
datafusion-udf-wasm-bundle = { workspace = true, features = ["example", "python"] }
28+
datafusion-udf-wasm-bundle = { workspace = true, features = [
29+
"example",
30+
"python"
31+
] }
3232
insta = "1.43.2"
3333
tokio = { workspace = true, features = ["fs", "macros"] }
3434
wiremock = "0.6.5"
35+
36+
[lints]
37+
workspace = true

0 commit comments

Comments
 (0)