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

Crate naming: never use -rs or -rust suffix #57

Closed
dtolnay opened this Issue May 8, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@dtolnay
Copy link
Member

dtolnay commented May 8, 2017

We already know what language we are writing.

@lfairy

This comment has been minimized.

Copy link

lfairy commented May 13, 2017

I've seen that used because the name without the suffix was already taken. But in those cases I think it's better to choose a different name anyway.

@dtolnay

This comment has been minimized.

Copy link
Member Author

dtolnay commented May 13, 2017

Right. If crate lfairy already exists so you call it lfairy-rs, in my opinion that is even less inspired than calling it lfairy2.

@Kixunil

This comment has been minimized.

Copy link

Kixunil commented May 31, 2017

This is true for crates themselves. I find repositories having -rs suffix useful if the name would be otherwise identical to some popular library from other language. (e.g. if repo is called json-rs I immediately know it's Rust crate.)

@lfairy

This comment has been minimized.

Copy link

lfairy commented Jun 1, 2017

Note that Cargo strips -rs and rust- from the crate name in cargo new already, so you have to work to circumvent this rule. See rust-lang/cargo#1532.

@dtolnay

This comment has been minimized.

Copy link
Member Author

dtolnay commented Oct 29, 2017

Added in c501a0b.

@dtolnay dtolnay closed this Oct 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.