-
Notifications
You must be signed in to change notification settings - Fork 43
Update names of lib targets #163
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
base: main
Are you sure you want to change the base?
Conversation
Any ancestors of this commit are from upstream mozilla-central, with some filtering and renaming. Our patches and sync tooling start here. The sync tooling has all been squashed into this commit, based on: https://github.com/servo/stylo/commits/64731e10dc8ef87ef52aa2fb9f988c3b2530f3a7
This is a rebase of 42990da Signed-off-by: Oriol Brufau <[email protected]> Signed-off-by: Nico Burns <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
…ed) (servo#99) Signed-off-by: Nico Burns <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
…l Stylo (servo#154) Signed-off-by: Barigbue <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
Also remove a bunch of dead code. Signed-off-by: Oriol Brufau <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
This is important for releasing version `v0.2.0`. See servo#151. Signed-off-by: Martin Robinson <[email protected]>
This is necessary to publish `v0.2.0`. Signed-off-by: Martin Robinson <[email protected]>
Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Oriol Brufau <[email protected]>
This seems to interfere with `cargo publish`, and this is a workaround for that issue. Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Oriol Brufau <[email protected]>
Signed-off-by: Nico Burns <[email protected]>
@@ -5,8 +5,6 @@ | |||
//! This module contains shared types and messages for use by devtools/script. | |||
//! The traits are here instead of in script so that the devtools crate can be | |||
//! modified independently of the rest of Servo. | |||
|
|||
#![crate_name = "style_traits"] |
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.
https://doc.rust-lang.org/rust-by-example/attribute/crate.html
it is important to note that both the crate_type and crate_name attributes have no effect whatsoever when using Cargo
So was this added in case that cargo is not used??
I'm a bit worried about accidentally breaking something that I'm missing.
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.
So was this added in case that cargo is not used??
I think so. See: https://web.mit.edu/rust-lang_v1.25/arch/amd64_ubuntu1404/share/doc/rust/html/rust-by-example/attribute/crate.html Given the timing of this code (when Cargo was still only a few months old), I suspect it may have been written with a pre-cargo world in mind.
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.
This passes Mozilla CI (https://treeherder.mozilla.org/jobs?repo=try&revision=a0ba50e438a0bdedc8e36fa026fe9550d6e3dd71). Perhaps I should just submit this upstream?
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 submitting it upstream sounds better
While the package names of the crates have all been updated to stylo*, it seems like that name of the crate within the package is still style* in some cases. This causes the docs.rs url to be https://docs.rs/stylo/latest/style rather than https://docs.rs/stylo/latest/stylo.
This PR changes this to be consistent by simply deleting the
name = "..."
lines which causes the crate name to default to the package name.It also removes the
crate_name
attribute from thestylo_traits
crate. These need to match the crate name inCargo.toml
. And as upstream have not yet renamed this crate keeping this line would mean extra diff. This line comes from the very first version ofstyle_traits
in 2015 (d7ba5ee) and none of the other crates have this attribute so I strongly suspect it is not necessary.