Cargo Features
[dependencies]
sgp4 = { version = "2.2.0", default-features = false, features = ["std", "alloc", "serde", "libm"] }
- default = alloc, serde, std
-
These default features are set whenever
sgp4
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
Enables std of anyhow, chrono, optional serde, and optional serde_json
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - alloc default serde std
-
Affects
tle::Elements.object_name
,tle::Elements.international_designator
,tle::parse_2les
,tle::parse_3les
… - serde default = alloc
-
Enables serde of chrono, alloc and derive of serde and alloc of serde_json
serde_json:
Provide integration for heap-allocated collections without depending on the rest of the Rust standard library. NOTE: Disabling both
std
andalloc
features is not supported yet. - libm
-
Enables libm of num-traits
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.