Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ default = ["elliptic", "lambert_w", "no_std"]

# If one of the two features is disabled, the other one must be enabled. If both
# features are enabled, `std` takes precedence over `no_std`.
no_std = ["lambert_w?/libm"]
std = ["lambert_w?/std"]
no_std = ["lambert_w?/libm", "ellip?/libm"]
std = ["lambert_w?/std", "ellip?/std"]

elliptic = ["ellip"]

[dependencies]
ellip = { version = "1.0.2", optional = true }
ellip = { version = "1.1.0", default-features = false, optional = true }
lambert_w = { version = "1", default-features = false, optional = true }
libm = "0.2"

Expand Down
3 changes: 3 additions & 0 deletions src/elliptic.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#[cfg(not(feature = "std"))]
use crate::primitive::Primitive;

macro_rules! declare_method {
($(#[$attribute:meta])* $name:ident($($argument:ident),*)) => {
$(#[$attribute])*
Expand Down