Skip to content

Commit dccee42

Browse files
committed
Bump hex version and update to new API
1 parent fde104c commit dccee42

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/controllers/krate/publish.rs

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

142+
let mut hex_cksum = String::new();
143+
cksum.write_hex(&mut hex_cksum)?;
144+
142145
// Register this crate in our local git repo.
143146
let git_crate = git::Crate {
144147
name: name.to_string(),
145148
vers: vers.to_string(),
146-
cksum: cksum.to_hex(),
149+
cksum: hex_cksum,
147150
features: features,
148151
deps: git_deps,
149152
yanked: Some(false),

0 commit comments

Comments
 (0)