-
Notifications
You must be signed in to change notification settings - Fork 120
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
Split crate into a proc-macro and a regular library crate #214
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6f52e18
Split crate into a proc-macro and a regular library crate
JelteF 012e288
Fix path to docs in Contribution Guide
tyranron 2348a34
Reuse README in `-impl` crate and lint docs there
tyranron 30bd893
Move `recursion_limit` to `-impl` crate
tyranron bbbc918
Inline docs from `-impl` crate explicitly
tyranron 7cdc829
Fix links in README of `-impl` crate
tyranron 562d509
Remove usage of deprecated `::set-output` GitHub actions feature
tyranron 9eacb0a
Explicitly test either whole workspace or a single crate on CI
tyranron ab9d379
`forbid(non_ascii_idents, unsafe_code)` in main crate too
tyranron fd90267
Fix workspace tests
tyranron 0fb046f
Only use build.rs in impl crate
JelteF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[package] | ||
name = "derive_more-impl" | ||
version = "0.99.17" # should be the same as main crate version | ||
edition = "2021" | ||
rust-version = "1.56.0" | ||
description = "Internal implementation of `derive_more` crate" | ||
authors = ["Jelte Fennema <github-tech@jeltef.nl>"] | ||
license = "MIT" | ||
repository = "https://github.com/JelteF/derive_more" | ||
documentation = "https://docs.rs/derive_more" | ||
|
||
# explicitly no keywords or categories so it cannot be found easily | ||
|
||
include = [ | ||
"src/**/*.rs", | ||
"doc/**/*.md", | ||
"Cargo.toml", | ||
"LICENSE", | ||
] | ||
|
||
[lib] | ||
proc-macro = true | ||
|
||
[dependencies] | ||
proc-macro2 = "1.0" | ||
quote = "1.0" | ||
syn = "1.0.81" | ||
convert_case = { version = "0.6", optional = true } | ||
unicode-xid = { version = "0.2.2", optional = true } | ||
|
||
[build-dependencies] | ||
rustc_version = { version = "0.4", optional = true } | ||
|
||
[dev-dependencies] | ||
derive_more = { path = ".." } | ||
|
||
[badges] | ||
github = { repository = "JelteF/derive_more", workflow = "CI" } | ||
|
||
[package.metadata.docs.rs] | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[features] | ||
add_assign = [] | ||
add = [] | ||
as_mut = [] | ||
as_ref = [] | ||
constructor = [] | ||
deref = [] | ||
deref_mut = [] | ||
display = ["syn/extra-traits", "unicode-xid"] | ||
error = ["syn/extra-traits"] | ||
from = ["syn/extra-traits"] | ||
from_str = ["convert_case"] | ||
index = [] | ||
index_mut = [] | ||
into = ["syn/extra-traits"] | ||
into_iterator = [] | ||
iterator = [] | ||
mul_assign = ["syn/extra-traits"] | ||
mul = ["syn/extra-traits"] | ||
not = ["syn/extra-traits"] | ||
sum = [] | ||
try_into = ["syn/extra-traits"] | ||
is_variant = ["convert_case"] | ||
unwrap = ["convert_case"] | ||
|
||
default = [] | ||
|
||
testing-helpers = ["rustc_version"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# `derive_more-impl` | ||
|
||
This crate is an implementation detail of the [`derive_more`][crates.io]. If you | ||
found this crate by accident you're probably looking for one of the following | ||
pages of [`derive_more`][crates.io]: | ||
1. [crates.io] | ||
2. [docs.rs] | ||
3. [GitHub] | ||
|
||
[crates.io]: https://crates.io/crates/derive_more | ||
[docs.rs]: https://docs.rs/derive_more/latest/derive_more | ||
[GitHub]: https://github.com/JelteF/derive_more |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentionally not
https://docs.rs/derive_more-impl
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes