![]() See theīuild cache documentation for more details. Target artifacts are placed in a separate directory. Note that specifying this flag makes Cargo run in a different mode where the This may also be specified with the build.target config value. This flag may be specified multiple times. Compilation Options -target triple Publish for the given architecture. p spec -package spec The package to publish. The -pįlag can be used to choose a different package in a workspace. Package Selectionīy default, the package in the current working directory is selected. Otherwise it will use the default registry, which is defined by the If not specified, and there is aĬargo.toml with a single registry, then it will publish to that registry. Registry names are defined in CargoĬonfig files. registry registry Name of the registry to publish to. index index The URL of the registry index to use. allow-dirty Allow working directories with uncommitted VCS changes to be packaged. no-verify Don’t verify the contents by building them. Variables of the form CARGO_REGISTRIES_NAME_TOKEN where NAME is the name Tokens for other registries may be specified with environment The token forĬrates.io may be specified with the CARGO_REGISTRY_TOKEN environment Used to override the tokens stored in the credentials file. The credentials file (which is created by cargo-login(1)).Ĭargo config environment variables can be token token API token to use when authenticating. OPTIONS Publish Options -dry-run Perform all checks without uploading. This command requires you to be authenticated with either the -token option In that case, you will need to check for completion The client will poll waiting for the package to appear in the index,Īnd may timeout.crate file by following the steps in cargo-package(1). Which registries you are allowed to publish to. Checks the package.publish key in the manifest for restrictions on.Source code of the package in the current directory and upload it to a ![]() This command will create a distributable, compressed. Cargo-publish - Upload a package to the registry SYNOPSIS
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |