Change serde_path to crate

Also changed the generated code to have at least one thing refer to the
path directly, rather than via `use` -- This shows that the impl *can*
work without `use`, but doesn't actually do all the work to remove the
`use` lines unless we decide we need this feature to work on the 2015
edition
This commit is contained in:
Sean Griffin
2019-03-28 11:42:50 -06:00
parent 0e6ce8fa50
commit b4d8a55b2a
4 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#[test]
fn test_gen_custom_serde() {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(serde_path = "fake_serde")]
#[serde(crate = "fake_serde")]
struct Foo;
// Would be overlapping if serde::Serialize were implemented