Skip to content

Remove unused dependencies#2002

Merged
bors[bot] merged 4 commits intorust-lang:masterfrom
sinkuu:deps
Oct 14, 2019
Merged

Remove unused dependencies#2002
bors[bot] merged 4 commits intorust-lang:masterfrom
sinkuu:deps

Conversation

@sinkuu
Copy link
Copy Markdown
Contributor

@sinkuu sinkuu commented Oct 11, 2019

No description provided.


# ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here
# to reduce number of compilations
smol_str = { version = "0.1.12", features = ["serde"] }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I think should stay, precisely to enable the serde feature of the smol_str

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I missed that this crate transitively depends on smol_str.

Comment thread crates/ra_tt/Cargo.toml
smol_str = "0.1.9"
# ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here
# to reduce number of compilations
smol_str = { version = "0.1.12", features = ["serde"] }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@matklad
Copy link
Copy Markdown
Contributor

matklad commented Oct 14, 2019 via email

bors Bot added a commit that referenced this pull request Oct 14, 2019
2002:  Remove unused dependencies r=matklad a=sinkuu



Co-authored-by: Shotaro Yamada <sinkuu@sinkuu.xyz>
@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Oct 14, 2019

Build succeeded

@bors bors Bot merged commit ad1323c into rust-lang:master Oct 14, 2019
@lnicola
Copy link
Copy Markdown
Member

lnicola commented Oct 14, 2019

Maybe it's a stupid question, but what's that thing about smol_str and serde? Does smol_str get compiled twice, once with the feature and once without?

@matklad
Copy link
Copy Markdown
Contributor

matklad commented Oct 14, 2019

If you cd crate/ra_syntax && cargo build, ra_syntax will be build with smol_str without serde. If you cd crate/ra_lsp_server && cargo build, ra_syntax will be build again, with smol_str with serde

@lnicola
Copy link
Copy Markdown
Member

lnicola commented Oct 14, 2019

But why not cargo build -p ra_syntax? CC #1925.

@matklad
Copy link
Copy Markdown
Contributor

matklad commented Oct 14, 2019

I think that would cause the same effect

@lnicola
Copy link
Copy Markdown
Member

lnicola commented Oct 14, 2019

Ah, you're right 😕. I thought it would use the same features as requested by the entire workspace, not only by that crate in isolation.

github-actions Bot pushed a commit that referenced this pull request Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants