Translate the following text to Chinese. ONLY return the translated text and nothing…
Private research annotation
Sign in to add a private research label or note.
- User
Translate the following text to Chinese. ONLY return the translated text and nothing else.
The package name is an identifier used to refer to the package. It is used when listed as a dependency in another package, and as the default name of inferred lib and bin targets.
The name must use only alphanumeric characters or - or _, and cannot be empty. Note that cargo new and cargo init impose some additional restrictions on the package name, such as enforcing that it is a valid Rust identifier and not a keyword. crates.io imposes even more restrictions, such as enforcing only ASCII characters, not a reserved name, not a special Windows name such as "nul", is not too long, etc.
- Assistant
包名是用于引用该包的标识符。当作为另一个包的依赖项列出时使用,并且作为推断出的库(lib)和二进制(bin)目标的默认名称。
名称必须仅使用字母数字字符或 - 或 _,且不能为空。请注意,cargo new 和 cargo init 对包名施加了一些额外的限制,例如强制其为有效的 Rust 标识符且不是关键字。crates.io 施加了更多限制,例如仅允许 ASCII 字符,不得是保留名称,不得是特殊的 Windows 名称如“nul”,且名称长度不得过长等。