Skip to content

Commit

Permalink
allow dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
bestia.dev committed Apr 22, 2024
1 parent 1f9be19 commit 51e9f4f
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-auto"
version = "2024.422.132"
version = "2024.422.214"
authors = ["bestia.dev"]
homepage = "https://bestia.dev"
edition = "2021"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[//]: # (auto_cargo_toml_to_md start)

**Automation tasks coded in Rust language for the workflow of Rust projects**
***version: 2024.422.132 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
***version: 2024.422.214 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***

![maintained](https://img.shields.io/badge/maintained-green)
![ready-for-use](https://img.shields.io/badge/ready_for_use-green)
Expand All @@ -28,11 +28,11 @@
![cargo-auto](https://bestia.dev/webpage_hit_counter/get_svg_image/959103982.svg)

[//]: # (auto_lines_of_code start)
[![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3141-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
[![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1950-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
[![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3145-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
[![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1203-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
[![Lines in Comments](https://img.shields.io/badge/Lines_in_comments-704-purple.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
[![Lines in examples](https://img.shields.io/badge/Lines_in_examples-0-yellow.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
[![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10898-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
[![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10949-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)

[//]: # (auto_lines_of_code end)

Expand Down
2 changes: 2 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ The TODO section is part of the [README.md](https://github.com/automation-tasks-

- auto

- allow dead code

## Version 2024.419.1824 (2024-04-19)

- no log file for tracing
Expand Down
3 changes: 3 additions & 0 deletions automation_tasks_rs/src/secrets_always_local_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ pub(crate) mod github_mod {
}

/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand Down Expand Up @@ -590,6 +591,7 @@ pub(crate) mod crate_io_mod {
}

/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand All @@ -598,6 +600,7 @@ pub(crate) mod crate_io_mod {
///
/// This function encapsulates the secret crates.io token.
/// The client can be passed to the library. It will not reveal the secret token.
#[allow(dead_code)]
pub fn publish_to_crates_io(&self) {
// print command without the token
println!("{YELLOW}cargo publish --token [REDACTED]{RESET}");
Expand Down
8 changes: 4 additions & 4 deletions src/bin/cargo-auto/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! # cargo-auto
//!
//! **Automation tasks coded in Rust language for the workflow of Rust projects**
//! ***version: 2024.422.132 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//! ***version: 2024.422.214 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//!
//! ![maintained](https://img.shields.io/badge/maintained-green)
//! ![ready-for-use](https://img.shields.io/badge/ready_for_use-green)
Expand All @@ -26,11 +26,11 @@
//! [![Newest docs](https://img.shields.io/badge/newest_docs-blue.svg)](https://automation-tasks-rs.github.io/cargo-auto/cargo_auto/index.html)
//! ![cargo-auto](https://bestia.dev/webpage_hit_counter/get_svg_image/959103982.svg)
//!
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3141-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1950-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3145-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1203-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Comments](https://img.shields.io/badge/Lines_in_comments-704-purple.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in examples](https://img.shields.io/badge/Lines_in_examples-0-yellow.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10898-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10949-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//!
//! Hashtags: #maintained #ready-for-use #rustlang #automation #workflow
//! My projects on GitHub are more like a tutorial than a finished product: [bestia-dev tutorials](https://github.com/bestia-dev/tutorials_rust_wasm).
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! # cargo-auto
//!
//! **Automation tasks coded in Rust language for the workflow of Rust projects**
//! ***version: 2024.422.132 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//! ***version: 2024.422.214 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//!
//! ![maintained](https://img.shields.io/badge/maintained-green)
//! ![ready-for-use](https://img.shields.io/badge/ready_for_use-green)
Expand All @@ -26,11 +26,11 @@
//! [![Newest docs](https://img.shields.io/badge/newest_docs-blue.svg)](https://automation-tasks-rs.github.io/cargo-auto/cargo_auto/index.html)
//! ![cargo-auto](https://bestia.dev/webpage_hit_counter/get_svg_image/959103982.svg)
//!
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3141-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1950-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3145-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1203-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Comments](https://img.shields.io/badge/Lines_in_comments-704-purple.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in examples](https://img.shields.io/badge/Lines_in_examples-0-yellow.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10898-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10949-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//!
//! Hashtags: #maintained #ready-for-use #rustlang #automation #workflow
//! My projects on GitHub are more like a tutorial than a finished product: [bestia-dev tutorials](https://github.com/bestia-dev/tutorials_rust_wasm).
Expand Down
4 changes: 4 additions & 0 deletions src/template_new_auto_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Cargo.lock
# not needed in commits, but also not a problem if they are committed
/.file_hashes.json
/.old_metadata.json
"###,
});
vec_file.push(crate::FileItem{
Expand Down Expand Up @@ -946,6 +947,7 @@ pub(crate) mod github_mod {
}
/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand Down Expand Up @@ -1137,6 +1139,7 @@ pub(crate) mod crate_io_mod {
}
/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand All @@ -1145,6 +1148,7 @@ pub(crate) mod crate_io_mod {
///
/// This function encapsulates the secret crates.io token.
/// The client can be passed to the library. It will not reveal the secret token.
#[allow(dead_code)]
pub fn publish_to_crates_io(&self) {
// print command without the token
println!("{YELLOW}cargo publish --token [REDACTED]{RESET}");
Expand Down
22 changes: 18 additions & 4 deletions src/template_new_cli_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Cargo.lock
# not needed in commits, but also not a problem if they are committed
/.file_hashes.json
/.old_metadata.json
"###,
});
vec_file.push(crate::FileItem{
Expand Down Expand Up @@ -966,6 +967,7 @@ pub(crate) mod github_mod {
}
/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand Down Expand Up @@ -1157,6 +1159,7 @@ pub(crate) mod crate_io_mod {
}
/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand All @@ -1165,6 +1168,7 @@ pub(crate) mod crate_io_mod {
///
/// This function encapsulates the secret crates.io token.
/// The client can be passed to the library. It will not reveal the secret token.
#[allow(dead_code)]
pub fn publish_to_crates_io(&self) {
// print command without the token
println!("{YELLOW}cargo publish --token [REDACTED]{RESET}");
Expand Down Expand Up @@ -1385,7 +1389,7 @@ fn upper_greet_name(greet_name: &str) -> anyhow::Result<()> {
//! # cargo-auto
//!
//! **Automation tasks coded in Rust language for the workflow of Rust projects**
//! ***version: 2024.422.132 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//! ***version: 2024.422.214 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//!
//! ![maintained](https://img.shields.io/badge/maintained-green)
//! ![ready-for-use](https://img.shields.io/badge/ready_for_use-green)
Expand All @@ -1405,11 +1409,11 @@ fn upper_greet_name(greet_name: &str) -> anyhow::Result<()> {
//! [![Newest docs](https://img.shields.io/badge/newest_docs-blue.svg)](https://automation-tasks-rs.github.io/cargo-auto/cargo_auto/index.html)
//! ![cargo-auto](https://bestia.dev/webpage_hit_counter/get_svg_image/959103982.svg)
//!
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3141-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1950-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3145-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1203-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Comments](https://img.shields.io/badge/Lines_in_comments-704-purple.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in examples](https://img.shields.io/badge/Lines_in_examples-0-yellow.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10898-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10949-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//!
//! Hashtags: #maintained #ready-for-use #rustlang #automation #workflow
//! My projects on GitHub are more like a tutorial than a finished product: [bestia-dev tutorials](https://github.com/bestia-dev/tutorials_rust_wasm).
Expand Down Expand Up @@ -2166,17 +2170,27 @@ fn integration_test_02_error_check() {
"rust-analyzer.showUnlinkedFileNotification": false,
"cSpell.words": [
"Alla",
"alloc",
"appender",
"bestia",
"bestiadev",
"camino",
"CRUSTDE",
"Decryptor",
"Encryptor",
"endregion",
"keygen",
"Nazdravlje",
"passcode",
"plantuml",
"Prost",
"reqwest",
"rustdevuser",
"rustlang",
"rustprojects",
"serde",
"struct",
"subsecond",
"substack",
"thiserror",
"zcvf",
Expand Down
25 changes: 20 additions & 5 deletions src/template_new_pwa_wasm_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ Cargo.lock

# not needed in commits, but also not a problem if they are committed
/.file_hashes.json
/.old_metadata.json
"###,
});
vec_file.push(crate::FileItem{
Expand Down Expand Up @@ -1168,6 +1169,7 @@ pub(crate) mod github_mod {
}

/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand Down Expand Up @@ -1359,6 +1361,7 @@ pub(crate) mod crate_io_mod {
}

/// decrypts the secret token in memory
#[allow(dead_code)]
pub fn decrypt_token_in_memory(&self) -> secrecy::SecretString {
self.encrypted_token.expose_decrypted_secret(&self.session_passcode)
}
Expand All @@ -1367,6 +1370,7 @@ pub(crate) mod crate_io_mod {
///
/// This function encapsulates the secret crates.io token.
/// The client can be passed to the library. It will not reveal the secret token.
#[allow(dead_code)]
pub fn publish_to_crates_io(&self) {
// print command without the token
println!("{YELLOW}cargo publish --token [REDACTED]{RESET}");
Expand Down Expand Up @@ -2016,7 +2020,7 @@ pub const RESET: &str = "\x1b[0m";
//! # cargo-auto
//!
//! **Automation tasks coded in Rust language for the workflow of Rust projects**
//! ***version: 2024.422.132 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//! ***version: 2024.422.214 date: 2024-04-22 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/automation-tasks-rs/cargo-auto)***
//!
//! ![maintained](https://img.shields.io/badge/maintained-green)
//! ![ready-for-use](https://img.shields.io/badge/ready_for_use-green)
Expand All @@ -2036,11 +2040,11 @@ pub const RESET: &str = "\x1b[0m";
//! [![Newest docs](https://img.shields.io/badge/newest_docs-blue.svg)](https://automation-tasks-rs.github.io/cargo-auto/cargo_auto/index.html)
//! ![cargo-auto](https://bestia.dev/webpage_hit_counter/get_svg_image/959103982.svg)
//!
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3141-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1950-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-3145-green.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-1203-blue.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in Comments](https://img.shields.io/badge/Lines_in_comments-704-purple.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in examples](https://img.shields.io/badge/Lines_in_examples-0-yellow.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10898-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//! [![Lines in tests](https://img.shields.io/badge/Lines_in_tests-10949-orange.svg)](https://github.com/automation-tasks-rs/cargo-auto/)
//!
//! Hashtags: #maintained #ready-for-use #rustlang #automation #workflow
//! My projects on GitHub are more like a tutorial than a finished product: [bestia-dev tutorials](https://github.com/bestia-dev/tutorials_rust_wasm).
Expand Down Expand Up @@ -2453,7 +2457,7 @@ jobs:
// but the new service worker will not be activated until all
// tabs with this webapp are closed.

const CACHE_NAME = '2024.422.125';
const CACHE_NAME = '2024.422.204';

self.addEventListener('install', event => {
console.log('event install ', CACHE_NAME);
Expand Down Expand Up @@ -9665,22 +9669,33 @@ So I can drink a free beer for your health :-)
"rust-analyzer.showUnlinkedFileNotification": false,
"cSpell.words": [
"Alla",
"alloc",
"appender",
"apos",
"bestia",
"bestiadev",
"bindgen",
"camino",
"cdylib",
"CRUSTDE",
"Decryptor",
"Encryptor",
"endregion",
"keygen",
"Nazdravlje",
"passcode",
"onchange",
"onclick",
"plantuml",
"Prost",
"reqwest",
"rustdevuser",
"rustc",
"rustlang",
"rustprojects",
"serde",
"struct",
"subsecond",
"substack",
"thiserror",
"webassembly",
Expand Down
Loading

0 comments on commit 51e9f4f

Please sign in to comment.