Mercurial > lbo > hg > memoize
view Cargo.toml @ 55:ed0142e2b833
Specify minimum version for syn dependency
With only an upper bound for the versioned dependency on syn, cargo can, and sometimes will, use a version <1.0 of syn.
Example:
[dependencies]
memoize = "0.1.7"
parse-display = "0.4.0"
$ cargo tree
[...]
├── memoize v0.1.7
│ └── syn v0.15.44
[...]
└── parse-display v0.5.1
[...]
├── parse-display-derive v0.5.1
│ └── syn v1.0.73 (*)
[...]
To fix this, also specify a lower bound.
author | Jan Niehusmann <jan@gondor.com> |
---|---|
date | Wed, 21 Jul 2021 23:31:38 +0200 |
parents | d713ed3952ac |
children | 853675bcf6ab |
line wrap: on
line source
[package] name = "memoize" version = "0.1.7" description = "Attribute macro for auto-memoizing functions with somewhat-simple signatures" keywords = ["memoization", "cache", "proc-macro"] authors = ["Lewin Bormann <lewin@lewin-bormann.info>"] homepage = "https://github.com/dermesser/memoize" repository = "https://github.com/dermesser/memoize" documentation = "https://docs.rs/memoize" edition = "2018" license = "MIT" [lib] proc-macro = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] lazy_static = "1.4" proc-macro2 = "1.0" quote = "1.0" syn = { version = "1.0, <1.0.58", features = ["full"] } lru = { version = "0.6", optional = true } [features] default = [] full = ["lru"]