mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 04:42:40 +00:00
04819d8cfd
Generates a new method on attributed types, `pool()`, which returns an opaque reference to a type that can be used to get pooled connections. Also adds a code-generated example to the crate docs which includes real, proper function signatures and fully checked examples. Resolves #1884. Closes #1972.
6 lines
129 B
Rust
6 lines
129 B
Rust
fn main() {
|
|
if let Some(true) = version_check::is_feature_flaggable() {
|
|
println!("cargo:rustc-cfg=nightly");
|
|
}
|
|
}
|