Remove unnecessary Syntexes

This commit is contained in:
David Tolnay 2016-06-12 15:50:45 -07:00
parent 8a09f05644
commit c5f606f10f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
6 changed files with 4 additions and 15 deletions

View File

@ -74,12 +74,12 @@ When run, it produces:
Point { x: 1, y: 2 } 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 Stable Rust is a little more complicated because it does not yet support
compiler plugins. Instead we need to use the code generation library compiler plugins. Instead we need to use `serde_codegen` which is based on the
[syntex](https://github.com/serde-rs/syntex) for this: code generation library [syntex](https://github.com/serde-rs/syntex):
```toml ```toml
[package] [package]
@ -90,7 +90,6 @@ build = "build.rs"
[build-dependencies] [build-dependencies]
serde_codegen = "*" serde_codegen = "*"
syntex = "*"
[dependencies] [dependencies]
serde = "*" serde = "*"
@ -130,7 +129,6 @@ fn main() {
`build.rs` `build.rs`
```rust,ignore ```rust,ignore
extern crate syntex;
extern crate serde_codegen; extern crate serde_codegen;
use std::env; use std::env;
@ -175,7 +173,6 @@ nightly = ["serde_macros"]
[build-dependencies] [build-dependencies]
serde_codegen = { version = "*", optional = true } serde_codegen = { version = "*", optional = true }
syntex = "*"
[dependencies] [dependencies]
serde = "*" serde = "*"
@ -188,7 +185,6 @@ serde_macros = { version = "*", optional = true }
```rust,ignore ```rust,ignore
#[cfg(not(feature = "serde_macros"))] #[cfg(not(feature = "serde_macros"))]
mod inner { mod inner {
extern crate syntex;
extern crate serde_codegen; extern crate serde_codegen;
use std::env; use std::env;

View File

@ -10,7 +10,6 @@ nightly = ["serde_macros"]
[build-dependencies] [build-dependencies]
serde_codegen = { version = "^0.7.10", optional = true } serde_codegen = { version = "^0.7.10", optional = true }
syntex = "^0.33.0"
[dependencies] [dependencies]
serde = "^0.7.10" serde = "^0.7.10"

View File

@ -1,6 +1,5 @@
#[cfg(not(feature = "serde_macros"))] #[cfg(not(feature = "serde_macros"))]
mod inner { mod inner {
extern crate syntex;
extern crate serde_codegen; extern crate serde_codegen;
use std::env; use std::env;

View File

@ -1,6 +1,5 @@
#[cfg(feature = "with-syntex")] #[cfg(feature = "with-syntex")]
mod inner { mod inner {
extern crate syntex;
extern crate quasi_codegen; extern crate quasi_codegen;
use std::env; use std::env;

View File

@ -14,15 +14,12 @@ build = "build.rs"
nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"] nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"]
[build-dependencies] [build-dependencies]
syntex = { version = "^0.35.0" }
syntex_syntax = { version = "^0.35.0" }
serde_codegen = { version = "*", path = "../serde_codegen", features = ["with-syntex"] } serde_codegen = { version = "*", path = "../serde_codegen", features = ["with-syntex"] }
[dev-dependencies] [dev-dependencies]
fnv = "1.0" fnv = "1.0"
rustc-serialize = "^0.3.16" rustc-serialize = "^0.3.16"
serde = { version = "*", path = "../serde" } serde = { version = "*", path = "../serde" }
syntex = "^0.35.0"
[dependencies] [dependencies]
clippy = { version = "^0.*", optional = true } clippy = { version = "^0.*", optional = true }

View File

@ -1,4 +1,3 @@
extern crate syntex;
extern crate serde_codegen; extern crate serde_codegen;
use std::env; use std::env;