Skip to content

Commit

Permalink
manage features
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Jan 15, 2025
1 parent 8c3a511 commit f22c86e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 30 deletions.
26 changes: 13 additions & 13 deletions autd3-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ license = { workspace = true }
repository = { workspace = true }

[dependencies]
async-trait = { workspace = true, default-features = false, optional = true }
autd3-derive = { workspace = true, default-features = false, optional = true }
bit-vec = { workspace = true, default-features = false, optional = true }
bvh = { workspace = true, default-features = false, optional = true }
derive_more = { workspace = true, default-features = false, optional = true }
derive-new = { workspace = true, default-features = false, optional = true }
nalgebra = { workspace = true, default-features = false, optional = true }
paste = { workspace = true, default-features = false, optional = true }
time = { workspace = true, default-features = false, features = ["macros", "std"], optional = true }
thiserror = { workspace = true, default-features = false, optional = true }
tracing = { workspace = true, default-features = false, optional = true }
zerocopy = { workspace = true, default-features = false, features = ["derive"], optional = true }
async-trait = { workspace = true, optional = true }
autd3-derive = { workspace = true, optional = true }
bit-vec = { workspace = true, optional = true }
bvh = { workspace = true, optional = true }
derive_more = { workspace = true, optional = true }
derive-new = { workspace = true, optional = true }
nalgebra = { workspace = true, optional = true }
paste = { workspace = true, optional = true }
time = { workspace = true, optional = true, features = ["macros", "std"] }
thiserror = { workspace = true, optional = true }
tracing = { workspace = true, optional = true }
zerocopy = { workspace = true, optional = true, features = ["derive"] }

[target.'cfg(windows)'.dependencies]
windows = { workspace = true, features = ["Win32_Media", "Win32_System_Threading"], optional = true }
windows = { workspace = true, optional = true, features = ["Win32_Media", "Win32_System_Threading"] }

[dev-dependencies]
anyhow = { workspace = true }
Expand Down
8 changes: 2 additions & 6 deletions autd3-driver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,29 @@ repository = { workspace = true }
[dependencies]
autd3-core = { workspace = true, features = ["gain", "geometry", "derive", "link", "ethercat", "modulation"] }
autd3-derive = { workspace = true }
serde = { workspace = true, optional = true }
bitflags = { workspace = true }
thiserror = { workspace = true }
nalgebra = { workspace = true }
time = { workspace = true, features = ["macros", "std"] }
bitfield-struct = { workspace = true }
rayon = { workspace = true }
itertools = { workspace = true, features = ["use_std"] }
derive_more = { workspace = true, features = ["add", "debug", "deref", "deref_mut", "display", "into_iterator", "mul"] }
itertools = { workspace = true }
derive_more = { workspace = true, features = ["deref_mut"] }
tracing = { workspace = true }
seq-macro = { workspace = true }
derive-new = { workspace = true }
zerocopy = { workspace = true }
paste = { workspace = true }

[dev-dependencies]
rand = { workspace = true }
approx = { workspace = true }
serde_json = { workspace = true }
anyhow = { workspace = true }
rstest = { workspace = true }
criterion = { workspace = true }

[features]
default = []
lightweight = []
serde = ["dep:serde"]
dynamic_freq = ["autd3-core/dynamic_freq"]

[lib]
Expand Down
4 changes: 2 additions & 2 deletions autd3-link-simulator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ repository = { workspace = true }

[dependencies]
autd3-protobuf = { workspace = true }
autd3-core = { workspace = true, features = ["link", "async", "derive"] }
autd3-core = { workspace = true, features = ["link", "async"] }
autd3-derive = { workspace = true }
tonic = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread"], optional = true }
tokio = { workspace = true, optional = true, features = ["rt-multi-thread"] }

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion autd3-modulation-audio-file/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ autd3-core = { workspace = true, features = ["derive", "modulation", "resampler"
autd3-derive = { workspace = true }
thiserror = { workspace = true }
csv = { workspace = true }
tracing = { workspace = true, features = ["attributes"] }
tracing = { workspace = true }

[features]
default = []
Expand Down
6 changes: 3 additions & 3 deletions autd3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ autd3-driver = { workspace = true }
autd3-derive = { workspace = true }
num = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "time"], optional = true }
tokio = { workspace = true, optional = true }
derive_more = { workspace = true }
tynm = { workspace = true }
itertools = { workspace = true }
tracing = { workspace = true, features = ["attributes"] }
tracing = { workspace = true }
bit-vec = { workspace = true }
rayon = { workspace = true }
derive-new = { workspace = true }
Expand All @@ -38,7 +38,7 @@ dynamic_freq = ["autd3-driver/dynamic_freq", "autd3-firmware-emulator/dynamic_fr

[dev-dependencies]
rand = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt"] }
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] }
anyhow = { workspace = true }
rstest = { workspace = true }
tokio-test = { workspace = true }
Expand Down
9 changes: 4 additions & 5 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ required-features = ["lightweight-server"]
[dependencies]
anyhow = { workspace = true }
autd3 = { workspace = true }
autd3-driver = { workspace = true }
autd3-gain-holo = { workspace = true }
autd3-link-simulator = { workspace = true, features = ["blocking"], optional = true }
autd3-link-simulator = { workspace = true, optional = true, features = ["blocking"] }
autd3-link-twincat = { workspace = true, optional = true }
autd3-modulation-audio-file = { workspace = true }
autd3-protobuf = { workspace = true, optional = true }
Expand All @@ -62,7 +61,7 @@ async = ["autd3/async", "tokio"]
simulator = ["autd3-link-simulator"]
twincat = ["autd3-link-twincat/local"]
remote_twincat = ["autd3-link-twincat/remote"]
lightweight = ["autd3-protobuf/lightweight", "autd3-protobuf/async-trait", "autd3-driver/lightweight"]
lightweight-server = ["autd3-protobuf/lightweight", "autd3-link-twincat/local", "autd3-link-twincat/async-trait", "autd3-protobuf/async-trait", "autd3-driver/lightweight", "tonic", "tokio/signal"]
lightweight = ["autd3-protobuf/lightweight", "autd3-protobuf/async-trait"]
lightweight-server = ["autd3-protobuf/lightweight", "autd3-link-twincat/local", "autd3-link-twincat/async-trait", "autd3-protobuf/async-trait", "tonic", "tokio/signal"]
all = ["async", "twincat", "remote_twincat", "simulator"]
dynamic_freq = ["autd3-driver/dynamic_freq"]
dynamic_freq = ["autd3/dynamic_freq"]

0 comments on commit f22c86e

Please sign in to comment.