Remove unnecessary Syntexes
This commit is contained in:
parent
8a09f05644
commit
c5f606f10f
12
README.md
12
README.md
@ -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;
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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 }
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
extern crate syntex;
|
|
||||||
extern crate serde_codegen;
|
extern crate serde_codegen;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
Loading…
Reference in New Issue
Block a user