Skip to content

Commit

Permalink
fix: std features were enabled by default
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Dec 25, 2024
1 parent 61cf9a9 commit 6e186cc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
23 changes: 11 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ repository = "https://github.com/AeroRust/free-flight-stabilization"

rust-version = "1.71"

[features]
default = []
std = ["num-traits/std", "piddiy/std", "fixed/std"]

[dependencies]
num-traits = "0.2.18"
num-traits = { version = "0.2", default-features = false }
piddiy = "0.1.1"

[dev-dependencies]
fixed = { version = "1.27.0", features = ["num-traits"] }
libc = "0.2.154"
fixed = { version = "1.28", features = ["num-traits"] }
libc = { version = "0.2", default-features = false }

[patch.crates-io]
piddiy = { version = "0.1.1", git = "https://github.com/LechevSpace/piddiy", branch = "fix/no_std-num-trait-for-float-numbers" }

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! version 1.3, an Arduino-based flight controller software. These functions
//! are used to stabilize unmanned aerial vehicles (UAVs).
#![no_std]
#![cfg_attr(not(feature = "std"), no_std)]
#![deny(missing_docs)]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]
Expand Down

0 comments on commit 6e186cc

Please sign in to comment.