mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-27 04:50:40 +00:00

In [#131] I added a check that ensures that the section in `Cargo.toml` (and there values) are in a specific order. I invented the order quite randomly, in the order which I thought might be useful. This PR changes the order to be the same as in Cargo's reference about [The Manifest Format]. Also some missing softlinks were added. [#131]: <https://github.com/rinja-rs/rinja/pull/131> [The Manifest Format]: <https://doc.rust-lang.org/cargo/reference/manifest.html>
50 lines
1.5 KiB
TOML
50 lines
1.5 KiB
TOML
[package]
|
|
name = "rinja_derive"
|
|
version = "0.3.5"
|
|
description = "Procedural macro package for Rinja"
|
|
homepage = "https://github.com/rinja-rs/rinja"
|
|
repository = "https://github.com/rinja-rs/rinja"
|
|
license = "MIT OR Apache-2.0"
|
|
workspace = ".."
|
|
readme = "README.md"
|
|
edition = "2021"
|
|
rust-version = "1.80"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
parser = { package = "rinja_parser", version = "=0.3.5", path = "../rinja_parser" }
|
|
|
|
basic-toml = { version = "0.1.1", optional = true }
|
|
pulldown-cmark = { version = "0.12.0", optional = true, default-features = false }
|
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
|
|
|
memchr = "2"
|
|
quote = { version = "1", default-features = false }
|
|
rustc-hash = "2.0.0"
|
|
syn = { version = "2.0.3", default-features = false, features = ["clone-impls", "derive", "parsing", "printing"] }
|
|
|
|
# in `rinja_derive_standalone` we opt out of the default features, because we need no native `proc-macro` support
|
|
proc-macro2 = "1"
|
|
|
|
[dev-dependencies]
|
|
console = "0.15.8"
|
|
prettyplease = "0.2.20"
|
|
similar = "2.6.0"
|
|
syn = { version = "2.0.3", features = ["full"] }
|
|
|
|
[features]
|
|
code-in-doc = ["dep:pulldown-cmark"]
|
|
config = ["dep:serde", "dep:basic-toml", "parser/config"]
|
|
urlencode = []
|
|
serde_json = []
|
|
|
|
[lints.rust]
|
|
# Used in `rinja_derive_standalone` which uses the same source folder, but is not a proc-macro.
|
|
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(feature, values("__standalone"))'] }
|