[package]
edition = "2021"
rust-version = "1.71"
name = "remain"
version = "0.2.16"
authors = ["David Tolnay <dtolnay@gmail.com>"]
build = false
exclude = ["build.rs"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compile-time checks that an enum, struct, or match is written in sorted order."
documentation = "https://docs.rs/remain"
readme = "README.md"
categories = [
"development-tools",
"no-std",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/remain"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--generate-link-to-definition",
"--generate-macro-expansion",
"--extern-html-root-url=core=https://doc.rust-lang.org",
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
"--extern-html-root-url=std=https://doc.rust-lang.org",
"--extern-html-root-url=proc_macro=https://doc.rust-lang.org",
]
[lib]
name = "remain"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "compiletest"
path = "tests/compiletest.rs"
[[test]]
name = "order"
path = "tests/order.rs"
[[test]]
name = "stable"
path = "tests/stable.rs"
[[test]]
name = "unstable"
path = "tests/unstable.rs"
[dependencies.proc-macro2]
version = "1.0.74"
[dependencies.quote]
version = "1.0.35"
[dependencies.syn]
version = "3"
features = [
"full",
"visit-mut",
]
[dev-dependencies.rustversion]
version = "1.0.13"
[dev-dependencies.trybuild]
version = "1.0.108"
features = ["diff"]