mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
In the way it's meant to be used, which means it uses it's own version of syntex, to assure it doesn't clash anymore in unforseen ways.
27 lines
487 B
Rust
27 lines
487 B
Rust
#[cfg(feature = "with-serde-codegen")]
|
|
mod inner {
|
|
extern crate serde_codegen;
|
|
|
|
use std::env;
|
|
use std::path::Path;
|
|
|
|
pub fn main() {
|
|
let out_dir = env::var_os("OUT_DIR").unwrap();
|
|
|
|
let src = Path::new("src/lib.rs.in");
|
|
let dst = Path::new(&out_dir).join("lib.rs");
|
|
|
|
serde_codegen::expand(&src, &dst).unwrap();
|
|
}
|
|
}
|
|
|
|
#[cfg(not(feature = "with-serde-codegen"))]
|
|
mod inner {
|
|
pub fn main() {
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
inner::main()
|
|
}
|