Translate the following text to Chinese. ONLY return the translated text and nothing…
Rate quality
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.
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",长度不过长等。