Skip to content

Let's use caret requirements (^) instead of tilde requirements (~) #92

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

Merged
merged 1 commit into from
Dec 8, 2014
Merged

Let's use caret requirements (^) instead of tilde requirements (~) #92

merged 1 commit into from
Dec 8, 2014

Conversation

simnalamburt
Copy link
Contributor

Supposing that cargos use the semantic versioning, caret requirements(^) is the perfect default option to show since tilde requirements(~) can be somewhat unnecessarily strict.

I think most people will use caret instead of tilde. Why don't we show caret?

Reference

@simnalamburt
Copy link
Contributor Author

OMG the build has failed but it's not my fault! Look at the details 😿 It's because of outdated rust codes 😭

@steveklabnik
Copy link
Member

I also thought that carat was intended to be the default as well /cc @wycats

@alexcrichton
Copy link
Member

I... thought I had already done this, sorry about that! Could you actually update to using no sigil at all? The default sigil for cargo is the caret (compatible), and I think I just erroneously had a tilde here.

@simnalamburt
Copy link
Contributor Author

@alexcrichton What do you mean 'no sigil'? Like this?

url = "0.2.2"

@steveklabnik
Copy link
Member

Yes.

Supposing that cargos use the semantic versioning, caret requirements(^) is the
perfect default option to show since tilde requirements(~) can be somewhat
unnecessarily strict

Since Cargo treates caret as default requirements, no sigil is needed in this
position

References:
    https://github.com/rust-lang/semver#requirements
    #92
@alexcrichton
Copy link
Member

Yes, thanks @simnalamburt!

alexcrichton added a commit that referenced this pull request Dec 8, 2014
Let's use caret requirements (^) instead of tilde requirements (~)
@alexcrichton alexcrichton merged commit 7c62208 into rust-lang:master Dec 8, 2014
simnalamburt added a commit to simnalamburt/bear that referenced this pull request Dec 8, 2014
Turbo87 pushed a commit to Turbo87/crates.io that referenced this pull request Jan 4, 2023
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