Skip to content

Commit

Permalink
Support crate names with uppercase letters.
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak committed Oct 27, 2023
1 parent b766888 commit a2e522a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions cargo-concordium/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

## Unreleased changes

## 3.1.4

- Support crate names with uppercase letters.

## 3.1.3

- Fix a bug where a missing target directory would fail if a reproducible build
was requested without a schema.

## 3.1.2

- Make sure to ignore the target directory also on Windows.

## 3.1.1

- Do not include file modification times in the tar archive produced as part of
a verifiable build.

## 3.1.0

- Support verifiable/reproducible builds.
Expand Down
2 changes: 1 addition & 1 deletion cargo-concordium/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cargo-concordium/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-concordium"
version = "3.1.3"
version = "3.1.4"
authors = ["Concordium <[email protected]>"]
edition = "2021"
license-file = "../LICENSE"
Expand Down
2 changes: 1 addition & 1 deletion cargo-concordium/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ENCODER: base64::engine::GeneralPurpose = general_purpose::STANDARD;
///
/// Used for converting crate names, which often contain `-`, to module names,
/// which cannot have `-`.
fn to_snake_case(string: &str) -> String { string.to_lowercase().replace('-', "_") }
fn to_snake_case(string: &str) -> String { string.replace('-', "_") }

/// Get the crate's metadata either by looking for the `Cargo.toml` file at the
/// `--manifest-path` or at the ancestors of the current directory.
Expand Down

0 comments on commit a2e522a

Please sign in to comment.