ac-library-rs
ac-library-rs copied to clipboard
Rename the package name
In Rust, it is common to set a repository name to foo-rs and to set a package.name to foo.
In actual, cargo new strip the "-rs" suffixes until recently.
$ cargo +1.15.1 new foo-rs --lib
note: package will be named `foo`; use --name to override
Created library `foo-rs` project
Why don't we rename the package name to ac-library or ac_library?
Or, or rather and, We can rename the lib.name to "atcoder" or something.
[lib]
name = "atcoder"
Then we can write in this way in examples and integration-tests (if we will write them) .
use atcoder::Dsu;
Agreed on ac_library. I'm afraid that atcoder may give a wrong impression that this crate is officially maintained by AtCoder, which is not quite right.
I agree with this suggestion. Do you think we shuold/can change this until 2023/04/07 (deadline of the language update?)
I think we should do. Or rather, this is the last chance.
I came up with another name. acl.
use acl::FenwickTree;
Repository name: ac-library-rs
package.name: ac-library-rs
lib.name (a.k.a. "crate_name"): ac_library_rs → acl
Which name is used in crates.io ? package.name or lib.name? Also I'm not so much in favor of such a short name because it is not very descriptive.
@manta1130 @kenkoooo @tttanikawa @hotman78 Mentioning to you as contributors. Would you give us your thoughts?
We have the following choices.
-
As is
package.name:ac-library-rslib.name:ac_library_rs -
ac-library/ac_librarypackage.name:ac-librarylib.name:ac_library -
ac-library-rs/ac_librarypackage.name:ac-library-rslib.name:ac_library -
atcoder(same as the original ACL)package.name:ac-library-rslib.name:atcoder -
aclpackage.name:ac-library-rslib.name:acl
I created two PRs for 5. and 3.
@mizar Could you choose one and merge it? As I mentioned, today is the last chance.