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