diff --git a/README.md b/README.md index ec8564c9..7029c375 100644 --- a/README.md +++ b/README.md @@ -74,12 +74,12 @@ When run, it produces: Point { x: 1, y: 2 } ``` -Using Serde with Stable Rust, syntex, and serde\_codegen -======================================================== +Using Serde with Stable Rust and serde\_codegen +=============================================== Stable Rust is a little more complicated because it does not yet support -compiler plugins. Instead we need to use the code generation library -[syntex](https://github.com/serde-rs/syntex) for this: +compiler plugins. Instead we need to use `serde_codegen` which is based on the +code generation library [syntex](https://github.com/serde-rs/syntex): ```toml [package] @@ -90,7 +90,6 @@ build = "build.rs" [build-dependencies] serde_codegen = "*" -syntex = "*" [dependencies] serde = "*" @@ -130,7 +129,6 @@ fn main() { `build.rs` ```rust,ignore -extern crate syntex; extern crate serde_codegen; use std::env; @@ -175,7 +173,6 @@ nightly = ["serde_macros"] [build-dependencies] serde_codegen = { version = "*", optional = true } -syntex = "*" [dependencies] serde = "*" @@ -188,7 +185,6 @@ serde_macros = { version = "*", optional = true } ```rust,ignore #[cfg(not(feature = "serde_macros"))] mod inner { - extern crate syntex; extern crate serde_codegen; use std::env; diff --git a/examples/serde-syntex-example/Cargo.toml b/examples/serde-syntex-example/Cargo.toml index 5cff3ade..c42124b7 100644 --- a/examples/serde-syntex-example/Cargo.toml +++ b/examples/serde-syntex-example/Cargo.toml @@ -10,7 +10,6 @@ nightly = ["serde_macros"] [build-dependencies] serde_codegen = { version = "^0.7.10", optional = true } -syntex = "^0.33.0" [dependencies] serde = "^0.7.10" diff --git a/examples/serde-syntex-example/build.rs b/examples/serde-syntex-example/build.rs index b034d05f..48728b8b 100644 --- a/examples/serde-syntex-example/build.rs +++ b/examples/serde-syntex-example/build.rs @@ -1,6 +1,5 @@ #[cfg(not(feature = "serde_macros"))] mod inner { - extern crate syntex; extern crate serde_codegen; use std::env; diff --git a/serde_codegen/build.rs b/serde_codegen/build.rs index 70c7cab0..3e15a0a5 100644 --- a/serde_codegen/build.rs +++ b/serde_codegen/build.rs @@ -1,6 +1,5 @@ #[cfg(feature = "with-syntex")] mod inner { - extern crate syntex; extern crate quasi_codegen; use std::env; diff --git a/serde_tests/Cargo.toml b/serde_tests/Cargo.toml index 47792176..56d9c031 100644 --- a/serde_tests/Cargo.toml +++ b/serde_tests/Cargo.toml @@ -14,15 +14,12 @@ build = "build.rs" nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"] [build-dependencies] -syntex = { version = "^0.35.0" } -syntex_syntax = { version = "^0.35.0" } serde_codegen = { version = "*", path = "../serde_codegen", features = ["with-syntex"] } [dev-dependencies] fnv = "1.0" rustc-serialize = "^0.3.16" serde = { version = "*", path = "../serde" } -syntex = "^0.35.0" [dependencies] clippy = { version = "^0.*", optional = true } diff --git a/serde_tests/build.rs b/serde_tests/build.rs index 6e1c1ff8..ad175e85 100644 --- a/serde_tests/build.rs +++ b/serde_tests/build.rs @@ -1,4 +1,3 @@ -extern crate syntex; extern crate serde_codegen; use std::env;