[dependencies.chrono]
optional = true
version = "0.4"
[dependencies.const-struct-version-derive]
optional = true
version = "0.1.3"
[dependencies.indexmap]
optional = true
version = "2"
[dependencies.sha1]
version = "0.10"
[dependencies.url]
optional = true
version = "2"
[dependencies.uuid]
optional = true
version = "1"
[dev-dependencies.insta]
features = ["json"]
version = "1"
[dev-dependencies.mutants]
version = "0.0.3"
[dev-dependencies.serde]
features = ["derive"]
version = "1"
[features]
chrono = ["dep:chrono"]
default = ["derive", "serde-attributes"]
derive = ["dep:const-struct-version-derive"]
indexmap = ["dep:indexmap"]
serde-attributes = []
url = ["dep:url"]
uuid = ["dep:uuid"]
[lib]
name = "const_struct_version"
path = "src/lib.rs"
[package]
authors = ["Josiah Bull <josiah.bull7@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["caching", "database"]
description = "A trait plus proc-macro to generate a hash based on the fields of a struct. Useful for intelligently expiring a cache when the stored object changes."
documentation = "https://docs.rs/const-struct-version"
edition = "2024"
keywords = ["cache", "hash", "struct", "derive", "proc-macro"]
license = "MIT OR Apache-2.0"
name = "const-struct-version"
readme = "README.md"
repository = "https://github.com/JosiahBull/const-struct-version"
version = "0.2.0"
[[test]]
name = "compile"
path = "tests/compile.rs"
[[test]]
name = "enum_discriminants"
path = "tests/enum_discriminants.rs"
[[test]]
name = "enum_tuple_variants"
path = "tests/enum_tuple_variants.rs"
[[test]]
name = "enum_unit_variants"
path = "tests/enum_unit_variants.rs"
[[test]]
name = "generic_struct"
path = "tests/generic_struct.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "named_fields_struct"
path = "tests/named_fields_struct.rs"
[[test]]
name = "nested_struct"
path = "tests/nested_struct.rs"
[[test]]
name = "recursive_struct"
path = "tests/recursive_struct.rs"
[[test]]
name = "serde_attributes"
path = "tests/serde_attributes.rs"
[[test]]
name = "tuple_struct"
path = "tests/tuple_struct.rs"
[[test]]
name = "unit_struct"
path = "tests/unit_struct.rs"