Skip to content

Commit

Permalink
Use default-features = false with bitflags. (#710)
Browse files Browse the repository at this point in the history
This disables `bitflags`' `std` feature, allowing it to work in no_std
mode.
  • Loading branch information
sunfishcode authored Jun 29, 2023
1 parent 3cef8d4 commit 321d1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rust-version = "1.63"
cc = { version = "1.0.68", optional = true }

[dependencies]
bitflags = "2.3.3"
bitflags = { version = "2.3.3", default-features = false }
itoa = { version = "1.0.1", default-features = false, optional = true }

# Special dependencies used in rustc-dep-of-std mode.
Expand Down Expand Up @@ -124,7 +124,7 @@ default = ["std", "use-libc-auxv"]

# This enables use of std. Disabling this enables `#![no_std], and requires
# Rust 1.64 or newer.
std = []
std = ["bitflags/std"]

# This is used in the port of std to rustix.
rustc-dep-of-std = [
Expand Down

0 comments on commit 321d1b1

Please sign in to comment.