Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple of packaging problems #49

Merged
merged 2 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ target/

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Not needed for libraries
Cargo.lock
337 changes: 0 additions & 337 deletions Cargo.lock

This file was deleted.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "veil"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
description = "Rust derive macro for redacting sensitive data in `std::fmt::Debug`"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -28,7 +28,7 @@ name = "disable_redaction"
required-features = ["toggle"]

[dependencies]
veil-macros = { path = "veil-macros", version = "0.1.3" }
veil-macros = { path = "veil-macros", version = "=0.1.4" }
once_cell = "1"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add to your Cargo.toml:

```toml
[dependencies]
veil = "0.1.3"
veil = "0.1.4"
```

Usage documentation can be found [here](https://docs.rs/veil).
Expand Down
7 changes: 6 additions & 1 deletion src/versioning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,14 @@ fn test_macros_crate_version() {

let manifest: CargoManifest = toml::from_str(include_str!("../Cargo.toml")).expect("Couldn't parse Cargo.toml");

assert!(
manifest.dependencies.veil_macros.version.starts_with('='),
"The version of `veil-macros` in the `[dependencies]` table in `veil` `Cargo.toml` should start with `=` to pin it to the specific matching version"
);

assert_eq!(
manifest.dependencies.veil_macros.version,
env!("CARGO_PKG_VERSION"),
concat!("=", env!("CARGO_PKG_VERSION")),
"The version of `veil-macros` that `veil` depends on in `[dependencies]` is out of date, please update it to match the version in Cargo.toml"
);
}
2 changes: 1 addition & 1 deletion veil-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "veil-macros"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
description = "Veil procedural macros"
license = "MIT OR Apache-2.0"
Expand Down