Skip to content

Commit c18985e

Browse files
committed
Bump hex version and update to new API
1 parent 52cd112 commit c18985e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ curl = "0.4"
4040
oauth2 = "0.3"
4141
log = "0.3"
4242
env_logger = "0.5"
43-
hex = "0.2"
43+
hex = "0.3"
4444
htmlescape = "0.3.1"
4545
license-exprs = "^1.3"
4646
dotenv = "0.11.0"

src/krate/publish.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,14 @@ pub fn publish(req: &mut Request) -> CargoResult<Response> {
145145
.upload_crate(req, &krate, readme, max, max_unpack, vers)?;
146146
version.record_readme_rendering(&conn)?;
147147

148+
let mut hex_cksum = String::new();
149+
cksum.write_hex(&mut hex_cksum)?;
150+
148151
// Register this crate in our local git repo.
149152
let git_crate = git::Crate {
150153
name: name.to_string(),
151154
vers: vers.to_string(),
152-
cksum: cksum.to_hex(),
155+
cksum: hex_cksum,
153156
features: features,
154157
deps: git_deps,
155158
yanked: Some(false),

0 commit comments

Comments
 (0)