This repository has been archived by the owner on Mar 17, 2022. It is now read-only.
forked from FraGag/feeds-to-pocket
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from serde_macros to serde_derive
Also run `cargo update` to update dependencies and purge unused dependencies.
- Loading branch information
Showing
4 changed files
with
65 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,17 @@ | ||
#[cfg(not(feature = "serde_macros"))] | ||
mod inner { | ||
#[cfg(feature = "serde_codegen")] | ||
fn main() { | ||
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/main.rs.in"); | ||
let dst = Path::new(&out_dir).join("main.rs"); | ||
let out_dir = env::var_os("OUT_DIR").unwrap(); | ||
|
||
serde_codegen::expand(&src, &dst).unwrap(); | ||
} | ||
} | ||
let src = Path::new("src/main.rs.in"); | ||
let dst = Path::new(&out_dir).join("main.rs"); | ||
|
||
#[cfg(feature = "serde_macros")] | ||
mod inner { | ||
pub fn main() {} | ||
serde_codegen::expand(&src, &dst).unwrap(); | ||
} | ||
|
||
fn main() { | ||
inner::main(); | ||
} | ||
#[cfg(not(feature = "serde_codegen"))] | ||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters