Cargo Features
[dependencies]
localizer = { version = "0.3.5", default-features = false, features = ["no_std", "std", "format"] }
- default = format, std
-
These default features are set whenever
localizer
is added without
somewhere in the dependency tree.default-features = false - no_std
-
Enables spin_no_std of lazy_static and alloc of serde and serde_json
serde:
Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.
- std default = lazy_static, toml
-
Enables std of serde and 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.Affects
enums::standart
,serialize_form::SerializeForm
,prelude::std_prelude
… - format default
-
Affects
localizer::formatter
,funcs::get_form_by_key
,funcs::get_form_by_key1
,localizer::Localizer.formatter
…
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.
- toml std
-
Enables toml ^0.5.6
- serde_json no_std? std
- lazy_static no_std? std
- serde no_std? std