Cargo Features
[dependencies]
fastsim-core = { version = "1.0.4", default-features = false, features = ["pyo3", "resources", "web", "serde-default", "csv", "json", "toml", "yaml", "msgpack", "simdrivelabel", "si", "cargo-clippy", "timer"] }
- default = resources, serde-default, simdrivelabel
-
These default features are set whenever
fastsim-coreis added withoutsomewhere in the dependency tree.default-features = false - pyo3
-
Enables
pyo3to provide fastsim-3 structs, methods, and functions to PythonEnables fastsim-core ^0.1.11 and pyo3 ^0.23.3
Affects
simdrivelabel::get_label_fe_py… - resources default
-
Compiles external resources (e.g. vehicle files or cycle files) to be available in the binary
Enables include_dir
Affects
serde_api::SerdeAPI.from_resource,serde_api::SerdeAPI.list_resources… - web
-
Enables internet-querying dependencies
Enables ureq ^2.9.1 and url
Affects
serde_api::SerdeAPI.from_url… - serde-default default = csv, json, msgpack, toml, yaml
-
Enables several text file formats for serialization and deserialization
- csv serde-default
-
Enables csv serialization and deserialization
Enables csv
- json serde-default
-
Enables json serialization and deserialization
Enables serde_json
Affects
serde_api::SerdeAPI.to_json,serde_api::SerdeAPI.from_json… - toml serde-default
-
Enables toml serialization and deserialization
Enables toml ^0.8.12
Affects
serde_api::SerdeAPI.to_toml,serde_api::SerdeAPI.from_toml… - yaml serde-default
-
Enables yaml serialization and deserialization
Enables serde_yaml ^0.8.23
Affects
serde_api::SerdeAPI.to_yaml,serde_api::SerdeAPI.from_yaml… - msgpack serde-default
-
Enables message pack serialization and deserialization via
rmp-serdeEnables rmp-serde
Affects
serde_api::SerdeAPI.to_msg_pack,serde_api::SerdeAPI.from_msg_pack… - simdrivelabel default
-
Enables the simdrivelabel module for calculating EPA label fuel economy
Affects
fastsim-core::simdrivelabel… - si
-
Features needed to allow for custom
uomquantities and units. Thesehave no actual effect.
- f32 cargo-clippy
- timer
-
Activates
timermacros