Skip to content

Commit e4e79c5

Browse files
committed
crates_io_tarball: Add README.md
1 parent a071aa7 commit e4e79c5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

crates/crates_io_tarball/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# crates_io_tarball
2+
3+
This package is used to extract metadata from a `.crate` file, which is the
4+
format used to distribute Rust libraries on https://crates.io.
5+
6+
The main source of metadata is the `Cargo.toml` file, which must be included in
7+
the `.crate` file.
8+
9+
A secondary source of metadata is the `.cargo_vcs_info.json` file, which
10+
contains information about the version control system that was used at the
11+
time of publishing the crate. Note that this file is optional, and must not be
12+
relied upon for critical information since a malicious user could tamper with
13+
it before publishing the crate.

crates/crates_io_tarball/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc = include_str!("../README.md")]
2+
13
#[cfg(test)]
24
#[macro_use]
35
extern crate claims;

0 commit comments

Comments
 (0)