mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-27 13:00:57 +00:00
doc: use feature(doc_cfg, doc_auto_cfg)
everywhere
This commit is contained in:
parent
88047ac92b
commit
757ba0ac7e
@ -8,6 +8,10 @@ publish = false
|
||||
[package.metadata]
|
||||
cargo-fuzz = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[dependencies]
|
||||
rinja = { path = "../../rinja" }
|
||||
rinja_parser = { path = "../../rinja_parser" }
|
||||
|
@ -1,3 +1,7 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
pub mod all;
|
||||
pub mod filters;
|
||||
pub mod html;
|
||||
@ -7,12 +11,14 @@ use std::error::Error;
|
||||
use std::fmt;
|
||||
|
||||
pub const TARGETS: &[(&str, TargetBuilder)] = &[
|
||||
("all", |data| NamedTarget::new::<all::Scenario>(data)),
|
||||
("all", |data| NamedTarget::new::<all::Scenario<'_>>(data)),
|
||||
("filters", |data| {
|
||||
NamedTarget::new::<filters::Scenario>(data)
|
||||
NamedTarget::new::<filters::Scenario<'_>>(data)
|
||||
}),
|
||||
("html", |data| NamedTarget::new::<html::Scenario<'_>>(data)),
|
||||
("parser", |data| {
|
||||
NamedTarget::new::<parser::Scenario<'_>>(data)
|
||||
}),
|
||||
("html", |data| NamedTarget::new::<html::Scenario>(data)),
|
||||
("parser", |data| NamedTarget::new::<parser::Scenario>(data)),
|
||||
];
|
||||
|
||||
pub type TargetBuilder = for<'a> fn(&'a [u8]) -> Result<NamedTarget<'a>, arbitrary::Error>;
|
||||
|
@ -54,10 +54,9 @@
|
||||
//! as well as Jinja-derivatives like [Twig](http://twig.sensiolabs.org/) or
|
||||
//! [Tera](https://github.com/Keats/tera).
|
||||
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||
|
||||
mod error;
|
||||
pub mod filters;
|
||||
|
@ -12,6 +12,10 @@ readme = "README.md"
|
||||
edition = "2021"
|
||||
rust-version = "1.71"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[dependencies]
|
||||
rinja = { version = "0.3.0", path = "../rinja", default-features = false, features = ["with-actix-web"] }
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
|
@ -12,6 +12,10 @@ documentation = "https://docs.rs/rinja"
|
||||
license = "MIT OR Apache-2.0"
|
||||
readme = "README.md"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[dependencies]
|
||||
rinja = { version = "0.3.0", path = "../rinja", default-features = false, features = ["with-axum"] }
|
||||
|
||||
@ -22,7 +26,7 @@ http = "1.0"
|
||||
axum = { version = "0.7", default-features = false }
|
||||
http-body-util = "0.1"
|
||||
tokio = { version = "1.0", features = ["macros", "rt"] }
|
||||
tower = "0.4"
|
||||
tower = { version = "0.5", features = ["util"] }
|
||||
|
||||
[features]
|
||||
default = ["rinja/default"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
|
@ -10,6 +10,10 @@ readme = "README.md"
|
||||
edition = "2021"
|
||||
rust-version = "1.71"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
|
@ -10,6 +10,10 @@ edition = "2021"
|
||||
rust-version = "1.71"
|
||||
publish = false
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[features]
|
||||
default = ["__standalone"]
|
||||
__standalone = []
|
||||
@ -36,7 +40,7 @@ once_map = { version = "0.4.18", default-features = false, features = ["std"] }
|
||||
proc-macro2 = "1"
|
||||
quote = "1"
|
||||
rustc-hash = "2.0.0"
|
||||
syn = "2"
|
||||
syn = "2.0.3"
|
||||
|
||||
[dev-dependencies]
|
||||
console = "0.15.8"
|
||||
|
@ -13,6 +13,10 @@ readme = "README.md"
|
||||
edition = "2021"
|
||||
rust-version = "1.71"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[features]
|
||||
config = ["dep:serde"]
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
#![deny(unreachable_pub)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::cell::Cell;
|
||||
|
@ -12,6 +12,10 @@ readme = "README.md"
|
||||
edition = "2021"
|
||||
rust-version = "1.71"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[dependencies]
|
||||
rinja = { version = "0.3.0", path = "../rinja", default-features = false, features = ["with-rocket"] }
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
|
@ -12,6 +12,10 @@ readme = "README.md"
|
||||
edition = "2021"
|
||||
rust-version = "1.71"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
|
||||
|
||||
[dependencies]
|
||||
rinja = { version = "0.3.0", path = "../rinja", default-features = false, features = ["with-warp"] }
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
#![deny(unreachable_pub)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user