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 }
```
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;

View File

@ -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"

View File

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

View File

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

View File

@ -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 }

View File

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