Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark auto_enums_core and auto_enums_derive as internal crate #76

Merged
merged 1 commit into from
Oct 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ auto_enums_derive = { version = "=0.6.4", path = "derive", default-features = fa
[dev-dependencies]
trybuild = "1.0"
futures-preview = "0.3.0-alpha.19"
rayon_crate = { version = "1", package = "rayon" }
serde_crate = { version = "1", package = "serde" }
rayon_crate = { version = "1.2", package = "rayon" }
serde_crate = { version = "1.0", package = "serde" }
rand = "0.7"
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation = "https://docs.rs/auto_enums_core/"
keywords = ["enum", "macros", "derive", "attribute"]
categories = ["rust-patterns"]
description = """
This library provides an attribute macro for to allow multiple return types by automatically generated enum.
An internal crate to support auto_enums - do not use directly
"""

[lib]
Expand Down
4 changes: 3 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! An internal crate to support auto_enums - **do not use directly**

#![recursion_limit = "256"]
#![doc(html_root_url = "https://docs.rs/auto_enums_core/0.6.4")]
#![doc(test(
Expand All @@ -23,5 +25,5 @@ use proc_macro::TokenStream;
/// An attribute macro for to allow multiple return types by automatically generated enum.
#[proc_macro_attribute]
pub fn auto_enum(args: TokenStream, input: TokenStream) -> TokenStream {
TokenStream::from(self::auto_enum::attribute(args.into(), input.into()))
crate::auto_enum::attribute(args.into(), input.into()).into()
}
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation = "https://docs.rs/auto_enums_derive/"
keywords = ["enum", "macros", "derive", "attribute"]
categories = ["rust-patterns"]
description = """
This library provides an attribute macro like a wrapper of `#[derive]`, implementing the supported traits and passing unsupported traits to `#[derive]`.
An internal crate to support auto_enums - do not use directly
"""

[lib]
Expand Down
4 changes: 3 additions & 1 deletion derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! An internal crate to support auto_enums - **do not use directly**

#![recursion_limit = "256"]
#![doc(html_root_url = "https://docs.rs/auto_enums_derive/0.6.4")]
#![doc(test(
Expand Down Expand Up @@ -43,5 +45,5 @@ use proc_macro::TokenStream;
/// the supported traits and passing unsupported traits to `#[derive]`.
#[proc_macro_attribute]
pub fn enum_derive(args: TokenStream, input: TokenStream) -> TokenStream {
TokenStream::from(self::enum_derive::attribute(args.into(), input.into()))
crate::enum_derive::attribute(args.into(), input.into()).into()
}
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ compile_error!(
"The `trusted_len` feature requires the `unstable` feature as an explicit opt-in to unstable features"
);

#[doc(hidden)]
#[doc(inline)]
pub use auto_enums_core::auto_enum;
#[doc(hidden)]
#[doc(inline)]
pub use auto_enums_derive::enum_derive;