Rename serde_internals to serde_codegen_internals

This commit is contained in:
David Tolnay 2016-06-30 19:53:57 -07:00
parent c6b6e2a5d9
commit 2d5a26dfc0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
10 changed files with 29 additions and 23 deletions

View File

@ -18,7 +18,7 @@ with-syntex = [
"quasi/with-syntex",
"quasi_codegen",
"quasi_codegen/with-syntex",
"serde_internals/with-syntex",
"serde_codegen_internals/with-syntex",
"syntex",
"syntex_syntax",
]
@ -32,6 +32,6 @@ aster = { version = "^0.19.0", default-features = false }
clippy = { version = "^0.*", optional = true }
quasi = { version = "^0.13.0", default-features = false }
quasi_macros = { version = "^0.13.0", optional = true }
serde_internals = { version = "^0.1.0", path = "../serde_internals", default-features = false }
serde_codegen_internals = { version = "^0.1.0", path = "../serde_codegen_internals", default-features = false }
syntex = { version = "^0.36.0", optional = true }
syntex_syntax = { version = "^0.36.0", optional = true }

View File

@ -6,7 +6,8 @@ use syntax::ast;
use syntax::ptr::P;
use syntax::visit;
use internals::{attr, Item};
use internals::ast::Item;
use internals::attr;
// Remove the default from every type parameter because in the generated impls
// they look like associated types: "error: associated type bindings are not

View File

@ -7,7 +7,8 @@ use syntax::parse::token::InternedString;
use syntax::ptr::P;
use bound;
use internals::{attr, Body, Error, Field, Item, Style, Variant};
use internals::ast::{Body, Field, Item, Style, Variant};
use internals::{attr, Error};
pub fn expand_derive_deserialize(
cx: &mut ExtCtxt,

View File

@ -7,7 +7,7 @@
extern crate aster;
extern crate quasi;
extern crate serde_internals as internals;
extern crate serde_codegen_internals as internals;
#[cfg(feature = "with-syntex")]
extern crate syntex;

View File

@ -6,7 +6,8 @@ use syntax::ext::base::{Annotatable, ExtCtxt};
use syntax::ptr::P;
use bound;
use internals::{attr, Body, Error, Field, Item, Style, Variant};
use internals::ast::{Body, Field, Item, Style, Variant};
use internals::{attr, Error};
pub fn expand_derive_serialize(
cx: &mut ExtCtxt,

View File

@ -1,5 +1,5 @@
[package]
name = "serde_internals"
name = "serde_codegen_internals"
version = "0.1.0"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
license = "MIT/Apache-2.0"

View File

@ -1,24 +1,10 @@
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
#![cfg_attr(not(feature = "with-syntex"), feature(rustc_private, plugin))]
#[cfg(feature = "with-syntex")]
#[macro_use]
extern crate syntex_syntax as syntax;
#[cfg(not(feature = "with-syntex"))]
#[macro_use]
extern crate syntax;
use syntax::ast;
use syntax::codemap;
use syntax::ext::base::ExtCtxt;
use syntax::ptr::P;
pub mod attr;
mod error;
pub use error::Error;
use attr;
use Error;
pub struct Item<'a> {
pub ident: ast::Ident,

View File

@ -0,0 +1,17 @@
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
#![cfg_attr(not(feature = "with-syntex"), feature(rustc_private, plugin))]
#[cfg(feature = "with-syntex")]
#[macro_use]
extern crate syntex_syntax as syntax;
#[cfg(not(feature = "with-syntex"))]
#[macro_use]
extern crate syntax;
pub mod ast;
pub mod attr;
mod error;
pub use error::Error;