Config Files · 1 file

Sample Cargo.toml File

Cargo.toml is the manifest for Rust crates. Our sample is realistic and valid for its tool, with fake hosts and secrets.

Cargo.toml · 369 B

Cargo.toml

A Rust Cargo manifest with package metadata, versioned and feature-flagged dependencies, dev-dependencies and a release profile. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

Cargo.toml — first linesTOML
# Sample Cargo.toml — samplefiles.com
[package]
name = "sample-app"
version = "1.4.2"
edition = "2021"
license = "CC0-1.0"

[dependencies]
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
anyhow = "1.0"

[dev-dependencies]
pretty_assertions = "1.4"

[profile.release]
lto = true
codegen-units = 1

File details

Size
369 B (369 bytes)
MIME type
application/toml
SHA-256
f6e929cd298c9a14d74cd4a079cd38ffe036e7712cb28732c044397fe2afd135
MD5
7b52ff7daac23705c341c618c464d5f2

Download from the command line

curl -L -o Cargo.toml https://files.samplefiles.com/config/cargo-toml/Cargo.toml

Or check the download in your browser with the checksum calculator.