diff --git a/.bumpversion-capi.cfg b/.bumpversion-capi.cfg index 7a0f93de..f8000205 100644 --- a/.bumpversion-capi.cfg +++ b/.bumpversion-capi.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.1 +current_version = 0.1.2 [bumpversion:file:crate/capi/examples/meson.build] diff --git a/Cargo.lock b/Cargo.lock index 27cdda63..23bad6c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,7 +17,7 @@ dependencies = [ [[package]] name = "abcrypt-capi" -version = "0.1.1" +version = "0.1.2" dependencies = [ "abcrypt", "cbindgen", diff --git a/crate/capi/CHANGELOG.adoc b/crate/capi/CHANGELOG.adoc index 68b6db02..15f1740e 100644 --- a/crate/capi/CHANGELOG.adoc +++ b/crate/capi/CHANGELOG.adoc @@ -15,7 +15,13 @@ All notable changes to this project will be documented in this file. The format is based on {keepachangelog}, and this project adheres to {semver}. -== {compare-url}/abcrypt-capi-v0.1.0\...abcrypt-capi-v0.1.1[0.1.1] - 2023-09-29 +== {compare-url}/abcrypt-capi-v0.1.1\...abcrypt-capi-v0.1.2[0.1.2] - 2023-09-29 + +=== Fixed + +* Fix `build.rs` ({pull-request-url}/87[#87]) + +== {compare-url}/abcrypt-capi-v0.1.0\...abcrypt-capi-v0.1.1[0.1.1] - 2023-09-29 [YANKED] === Fixed diff --git a/crate/capi/Cargo.toml b/crate/capi/Cargo.toml index 0528995a..de273dd6 100644 --- a/crate/capi/Cargo.toml +++ b/crate/capi/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "abcrypt-capi" -version = "0.1.1" +version = "0.1.2" authors.workspace = true edition.workspace = true rust-version.workspace = true diff --git a/crate/capi/build.rs b/crate/capi/build.rs index c0bf8a97..af7e77cd 100644 --- a/crate/capi/build.rs +++ b/crate/capi/build.rs @@ -19,6 +19,7 @@ fn main() { let lock_file = crate_dir.join("Cargo.lock"); if lock_file.exists() { - fs::remove_file(lock_file).expect("failed to remove `Cargo.lock`"); + fs::remove_file(lock_file) + .unwrap_or_else(|err| println!("cargo:warning=failed to remove `Cargo.lock`: {err}")); } } diff --git a/crate/capi/examples/meson.build b/crate/capi/examples/meson.build index 62fb9fc4..2b6114be 100644 --- a/crate/capi/examples/meson.build +++ b/crate/capi/examples/meson.build @@ -7,7 +7,7 @@ project('abcrypt_capi_examples', default_options: ['warning_level=3', 'cpp_std=c++17'], license: 'Apache-2.0 OR MIT', meson_version: '>=0.53.0', - version: '0.1.1', + version: '0.1.2', ) fs = import('fs') diff --git a/crate/capi/examples/version.cpp b/crate/capi/examples/version.cpp index d249fa82..e925ab9f 100644 --- a/crate/capi/examples/version.cpp +++ b/crate/capi/examples/version.cpp @@ -6,7 +6,7 @@ #include -constexpr auto VERSION = "0.1.1"; +constexpr auto VERSION = "0.1.2"; void print_version(void) { std::cout << fmt::format("abcrypt-capi {}", VERSION) << std::endl; diff --git a/crate/capi/src/lib.rs b/crate/capi/src/lib.rs index fbc67f67..7559b5e1 100644 --- a/crate/capi/src/lib.rs +++ b/crate/capi/src/lib.rs @@ -4,7 +4,7 @@ //! The `abcrypt-capi` crate is the C API for the [`abcrypt`] crate. -#![doc(html_root_url = "https://docs.rs/abcrypt-capi/0.1.1/")] +#![doc(html_root_url = "https://docs.rs/abcrypt-capi/0.1.2/")] #![cfg_attr(doc_cfg, feature(doc_auto_cfg, doc_cfg))] // Lint levels of rustc. #![deny(missing_debug_implementations, missing_docs)] diff --git a/crate/cli/build.rs b/crate/cli/build.rs index 4d2b470a..83943f05 100644 --- a/crate/cli/build.rs +++ b/crate/cli/build.rs @@ -42,11 +42,11 @@ fn main() { match generate_man_page(out_dir) { Ok(exit_status) => { if !exit_status.success() { - println!("cargo:warning=Asciidoctor failed ({exit_status})"); + println!("cargo:warning=Asciidoctor failed: {exit_status}"); } } Err(err) => { - println!("cargo:warning=failed to execute Asciidoctor ({err})"); + println!("cargo:warning=failed to execute Asciidoctor: {err}"); } } }