diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2b405dc..2aa89fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,7 +37,7 @@ jobs: RUSTFLAGS: "-D warnings" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} diff --git a/.github/workflows/msrv.yaml b/.github/workflows/msrv.yaml index d811c71..def2b70 100644 --- a/.github/workflows/msrv.yaml +++ b/.github/workflows/msrv.yaml @@ -34,7 +34,7 @@ jobs: RUSTFLAGS: "-D warnings" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 829db2c..4422465 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Changelog + +## [0.5.1](https://github.com/Blobfolio/write_atomic/releases/tag/v0.5.1) - 2024-09-05 + +### Changed + +* Miscellaneous code cleanup and lints + + + ## [0.5.0](https://github.com/Blobfolio/write_atomic/releases/tag/v0.5.0) - 2023-10-05 ### Changed diff --git a/CREDITS.md b/CREDITS.md index ec2372b..9673143 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,10 +1,11 @@ # Project Dependencies Package: write_atomic - Version: 0.5.0 - Generated: 2023-10-05 19:15:11 UTC + Version: 0.5.1 + Generated: 2024-09-05 19:28:26 UTC | Package | Version | Author(s) | License | | ---- | ---- | ---- | ---- | | [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:alex@alexcrichton.com) | Apache-2.0 or MIT | -| [fastrand](https://github.com/smol-rs/fastrand) | 2.0.1 | [Stjepan Glavina](mailto:stjepang@gmail.com) | Apache-2.0 or MIT | -| [tempfile](https://github.com/Stebalien/tempfile) | 3.8.0 | [Steven Allen](mailto:steven@stebalien.com), The Rust Project Developers, [Ashley Mannix](mailto:ashleymannix@live.com.au), and [Jason White](mailto:me@jasonwhite.io) | Apache-2.0 or MIT | +| [fastrand](https://github.com/smol-rs/fastrand) | 2.1.1 | [Stjepan Glavina](mailto:stjepang@gmail.com) | Apache-2.0 or MIT | +| [once_cell](https://github.com/matklad/once_cell) | 1.19.0 | [Aleksey Kladov](mailto:aleksey.kladov@gmail.com) | Apache-2.0 or MIT | +| [tempfile](https://github.com/Stebalien/tempfile) | 3.12.0 | [Steven Allen](mailto:steven@stebalien.com), The Rust Project Developers, [Ashley Mannix](mailto:ashleymannix@live.com.au), and [Jason White](mailto:me@jasonwhite.io) | Apache-2.0 or MIT | diff --git a/Cargo.toml b/Cargo.toml index 20f3e02..94b3aaa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "write_atomic" -version = "0.5.0" +version = "0.5.1" authors = ["Blobfolio, LLC. "] edition = "2021" rust-version = "1.73" diff --git a/README.md b/README.md index 5d4a9aa..e5daddf 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ write_atomic = "0.5.*" See also: [CREDITS.md](CREDITS.md) -Copyright © 2023 [Blobfolio, LLC](https://blobfolio.com) <hello@blobfolio.com> +Copyright © 2024 [Blobfolio, LLC](https://blobfolio.com) <hello@blobfolio.com> This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2. diff --git a/justfile b/justfile index c6397a7..a967b23 100644 --- a/justfile +++ b/justfile @@ -41,7 +41,6 @@ doc_dir := justfile_directory() + "/doc" cargo clippy \ --release \ --all-features \ - --target x86_64-unknown-linux-gnu \ --target-dir "{{ cargo_dir }}" @@ -59,12 +58,11 @@ doc_dir := justfile_directory() + "/doc" # Make the docs. cargo rustdoc \ --release \ - --target x86_64-unknown-linux-gnu \ --target-dir "{{ cargo_dir }}" # Move the docs and clean up ownership. [ ! -d "{{ doc_dir }}" ] || rm -rf "{{ doc_dir }}" - mv "{{ cargo_dir }}/x86_64-unknown-linux-gnu/doc" "{{ justfile_directory() }}" + mv "{{ cargo_dir }}/doc" "{{ justfile_directory() }}" just _fix-chown "{{ doc_dir }}" @@ -73,12 +71,10 @@ doc_dir := justfile_directory() + "/doc" clear cargo test \ --all-features \ - --target x86_64-unknown-linux-gnu \ --target-dir "{{ cargo_dir }}" cargo test \ --release \ --all-features \ - --target x86_64-unknown-linux-gnu \ --target-dir "{{ cargo_dir }}" diff --git a/src/lib.rs b/src/lib.rs index 2b276e7..55ee773 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,23 +25,48 @@ write_atomic::write_file("/path/to/my-file.txt", b"Some data!").unwrap(); #![forbid(unsafe_code)] +#![deny( + // TODO: clippy::allow_attributes_without_reason, + clippy::correctness, + unreachable_pub, +)] + #![warn( - clippy::filetype_is_file, - clippy::integer_division, - clippy::needless_borrow, + clippy::complexity, clippy::nursery, clippy::pedantic, clippy::perf, - clippy::suboptimal_flops, + clippy::style, + + // TODO: clippy::allow_attributes, + clippy::clone_on_ref_ptr, + clippy::create_dir, + clippy::filetype_is_file, + clippy::format_push_string, + clippy::get_unwrap, + clippy::impl_trait_in_params, + clippy::lossy_float_literal, + clippy::missing_assert_message, + clippy::missing_docs_in_private_items, + clippy::needless_raw_strings, + clippy::panic_in_result_fn, + clippy::pub_without_shorthand, + clippy::rest_pat_in_fully_bound_structs, + clippy::semicolon_inside_block, + clippy::str_to_string, + clippy::string_to_string, + clippy::todo, + clippy::undocumented_unsafe_blocks, clippy::unneeded_field_pattern, + clippy::unseparated_literal_suffix, + clippy::unwrap_in_result, + macro_use_extern_crate, missing_copy_implementations, - missing_debug_implementations, missing_docs, non_ascii_idents, trivial_casts, trivial_numeric_casts, - unreachable_pub, unused_crate_dependencies, unused_extern_crates, unused_import_braces,