Cargo Features

datagen-rs has no features set by default.

[dependencies]
datagen-rs = { version = "0.1.0", features = ["all", "plugin", "native-plugin", "serialize", "map-schema", "generate", "schema"] }
all = generate, native-plugin, plugin, schema, serialize
plugin all? generate? native-plugin? = generate

Affects util::plugin_error

native-plugin all? = plugin

Enables libloading

Affects plugins::imported_plugin, plugin_error::native

serialize all? map-schema? schema?

Enables serde, serde of indexmap and ordered-float

Affects helpers::read_schema

map-schema generate? = serialize

Enables handlebars ^4, rand, and regex

Affects generated_schema::generate, generate::resolved_reference, generate::schema_mapper, schema_mapper::generate, reference::generate, transform::generate, filter::generate, plugin_transform::generate, util::generate_error

generate all? plugin? = map-schema, plugin

Enables fake ^2.8, quick-xml ^0.30, serde_yaml, and xml-rs

Affects any::generate, any_of::generate, any_value::generate, array::generate, bool::generate, counter::generate, helpers::generate_random_data, util::sequential_vec

schema all? = serialize

Enables schemars and serde, schemars of ordered-float

Affects helpers::get_schema_value, helpers::write_json_schema