[package]
edition = "2024"
rust-version = "1.95"
name = "enum2contract"
version = "0.2.0"
authors = ["Matthew Berger <matthewjordanberger@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
enum2contract is a no_std compatible rust derive macro that lets users specify contracts for pub/sub style messaging using strongly typed rust enums.
Conversion methods for JSON and binary are created for the generated payloads.
"""
homepage = "https://github.com/matthewjberger/enum2contract"
readme = "README.md"
keywords = [
"enum",
"macro",
"contract",
]
license = "MIT"
repository = "https://github.com/matthewjberger/enum2contract"
[lib]
name = "enum2contract"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "convert"
path = "tests/convert.rs"
[dependencies.proc-macro2]
version = "1.0"
[dependencies.quote]
version = "1.0"
[dependencies.syn]
version = "2.0"
[dev-dependencies.postcard]
version = "1.0"
features = ["alloc"]
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false
[dev-dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false