Cargo Features

[dependencies]
fastsim-core = { version = "0.1.7", default-features = false, features = ["bincode", "logging", "pyo3", "resources", "simdrivelabel", "validation", "vehicle-import"] }
default = logging, resources, simdrivelabel, validation, vehicle-import

to disable the default features, see https://doc.rust-lang.org/cargo/reference/features.html?highlight=no-default-features#the-default-feature and use the --no-default-features flag when compiling

Enables argmin ^0.7.0, argmin-math ^0.2.1, and directories

Affects traits::SerdeAPI.to_cache, traits::SerdeAPI.from_cache, utils::download_file_from_url, utils::create_project_subdir, utils::path_to_cache, utils::clear_cache, utils::url_to_cache, vehicle_utils::abc_to_drag_coeffs

bincode

non-default: bincode broken for RustVehicle struct

Enables bincode

Affects traits::SerdeAPI.to_bincode, traits::SerdeAPI.from_bincode

logging default

Enables log

pyo3

non-default: feature for use with fastsim-py crate

Enables pyo3 ^0.19

Affects cycle::register, simdrivelabel::make_accel_trace_py, simdrivelabel::get_net_accel_py, simdrivelabel::get_label_fe_py, simdrivelabel::get_label_fe_phev_py, utils::array_wrappers

resources default simdrivelabel

Enables include_dir

Affects traits::RESOURCES_DIR, traits::SerdeAPI.list_resources, traits::SerdeAPI.from_resource

simdrivelabel default = resources
validation default

Enables validator ^0.16

vehicle-import default

Enables curl