Cargo Features

[dependencies]
strong_id = { version = "0.4.0", default-features = false, features = ["delimited", "serde", "uuid", "uuid-v1", "uuid-v3", "uuid-v4", "uuid-v5", "uuid-v6", "uuid-v7", "uuid-v8", "typeid", "all"] }
default = delimited, uuid, uuid-v4

These default features are set whenever strong_id is added without default-features = false somewhere in the dependency tree.

delimited default all? typeid?

enable underscore ('_') delimited prefixes

Enables delimited of strong_id_macros

serde all?

Enables serde, serde of strong_id_macros

uuid default all? typeid?

Enables uuid

Affects strong_id::StrongUuid

uuid-v1 all?

Enables uuid-v1 of strong_id_macros and v1 of optional uuid

uuid:

NOTE: When adding new features, check the ci.yml workflow and include them where necessary (you can follow along with existing features)

Affects strong_id::StrongUuid.new_v1, strong_id::StrongUuid.now_v1

uuid-v3 all?

Enables uuid-v3 of strong_id_macros, v3 of optional uuid

Affects strong_id::StrongUuid.new_v3

uuid-v4 default all?

Enables uuid-v4 of strong_id_macros, v4 of optional uuid

Affects strong_id::StrongUuid.new_v4

uuid-v5 all?

Enables uuid-v5 of strong_id_macros, v5 of optional uuid

Affects strong_id::StrongUuid.new_v5

uuid-v6 all?

Enables uuid-v6 of strong_id_macros, v6 of optional uuid

Affects strong_id::StrongUuid.new_v6, strong_id::StrongUuid.now_v6

uuid-v7 all? typeid?

Enables uuid-v7 of strong_id_macros, v7 of optional uuid

Affects strong_id::StrongUuid.new_v7, strong_id::StrongUuid.now_v7

uuid-v8 all?

Enables uuid-v8 of strong_id_macros, v8 of optional uuid

Affects strong_id::StrongUuid.new_v8

typeid = delimited, uuid, uuid-v7

enable features which satisfy the TypeID spec note: the TypeID spec does not allow delimited prefixes, so this should be used alongside default-features = false

all = delimited, serde, uuid, uuid-v1, uuid-v3, uuid-v4, uuid-v5, uuid-v6, uuid-v7, uuid-v8

enable all features. useful for testing.