Skip to content

Commit

Permalink
Disable crossbeam-channel by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust authored and 0xpr03 committed Jun 30, 2024
1 parent fc7e25d commit b56756c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 32 deletions.
16 changes: 4 additions & 12 deletions notify-debouncer-full/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,16 @@ edition = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "notify_debouncer_full"
path = "src/lib.rs"

[features]
default = ["crossbeam","macos_fsevent"]
default = ["macos_fsevent"]
serde = ["notify-types/serde"]
mock_instant = ["dep:mock_instant","notify-types/mock_instant"]
# can't use dep:crossbeam-channel and feature name crossbeam-channel below rust 1.60
crossbeam = ["crossbeam-channel","notify/crossbeam-channel"]
serialization-compat-6 = ["notify/serialization-compat-6"]
mock_instant = ["dep:mock_instant", "notify-types/mock_instant"]
crossbeam-channel = ["dep:crossbeam-channel", "notify/crossbeam-channel"]
macos_fsevent = ["notify/macos_fsevent"]
macos_kqueue = ["notify/macos_kqueue"]

[dependencies]
notify = { workspace = true, default-features = false }
notify = { workspace = true }
notify-types = { workspace = true }
crossbeam-channel = { workspace = true, optional = true }
file-id = { workspace = true }
Expand Down
14 changes: 3 additions & 11 deletions notify-debouncer-mini/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,15 @@ edition = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "notify_debouncer_mini"
path = "src/lib.rs"

[features]
default = ["crossbeam","macos_fsevent"]
default = ["macos_fsevent"]
serde = ["notify-types/serde"]
# can't use dep:crossbeam-channel and feature name crossbeam-channel below rust 1.60
crossbeam = ["crossbeam-channel","notify/crossbeam-channel"]
serialization-compat-6 = ["notify/serialization-compat-6"]
crossbeam-channel = ["dep:crossbeam-channel", "notify/crossbeam-channel"]
macos_fsevent = ["notify/macos_fsevent"]
macos_kqueue = ["notify/macos_kqueue"]

[dependencies]
notify = { workspace = true, default-features = false }
notify = { workspace = true }
notify-types = { workspace = true }
crossbeam-channel = { workspace = true, optional = true }
log = { workspace = true }
15 changes: 6 additions & 9 deletions notify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ edition = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }

[features]
default = ["macos_fsevent"]
serde = ["notify-types/serde"]
macos_kqueue = ["kqueue", "mio"]
macos_fsevent = ["fsevent-sys"]

[dependencies]
notify-types = { workspace = true }
crossbeam-channel = { workspace = true, optional = true }
Expand Down Expand Up @@ -48,12 +54,3 @@ tempfile = { workspace = true }
nix = { workspace = true }
insta = { workspace = true }
rstest = { workspace = true }

[features]
default = ["macos_fsevent","crossbeam-channel"]
serde = ["notify-types/serde"]
timing_tests = []
manual_tests = []
macos_kqueue = ["kqueue", "mio"]
macos_fsevent = ["fsevent-sys"]
serialization-compat-6 = ["notify-types/serialization-compat-6"]

0 comments on commit b56756c

Please sign in to comment.