Cargo Features
tosho-common has no features set by default.
[dependencies]
tosho-common = { version = "0.1.1", features = ["serde", "protobuf", "image", "id-gen", "complete-errors", "all"] }
- serde complete-errors?
-
Each source crate can enable the features they need
Enables serde and serde_json
Affects
errors::ToshoDetailedParseError
,parser::parse_json_response
,parser::parse_json_response_failable
… - protobuf complete-errors?
-
Enables prost
Affects
parser::parse_protobuf_response
… - image complete-errors?
-
Enables image
Affects
errors::ToshoDetailedImageError
… - id-gen all?
-
Random generator and stuff
Enables rand
Affects
tosho-common::generator
… - complete-errors all? = image, protobuf, serde
-
All features, used in CLI mainly
- all = complete-errors, id-gen