goto1717

Crates.iogoto1717
lib.rsgoto1717
version0.0.168
created_at2025-05-08 13:29:20.835485+00
updated_at2025-09-08 11:39:49.847624+00
descriptiongoto & more for Rust
homepage
repository
max_upload_size
id1665346
size80,022
(SarK0Y)

documentation

README

GOTO1717.
The very idea of this sub-project of TAM is, making Rust's macros for practical, educational & researching purposes.

FUNCTIONALITY.

  • Log variables in function.
  • Goto.
  • Defer.

Log variables in function.

Add deps to Cargo.toml:
goto1717 = { path = "../ext/goto", version = "0.0.125", optional = true, default-features = false }
rst_lex = { path = "../ext/rst_lex", version = "0.0.68", optional = true }

Add features to Your Project:

tst_macro = ["rst_lex/dev_hell_n_fun", "goto1717/tst"]
macro = ["rst_lex/stable", "goto1717/stable"]

Use macro:

 #[cfg(feature ="tst_macro")]
use goto1717::log_vars;
 #[cfg(feature ="tst_macro")]
 #[log_vars(log_size=3k,log_path=/dev/shm/build_page.log)]
 pub fn Your_Func (.....)

Example w/ TAM:

mkdir /dev/shm/tst
cd /dev/shm/tst
git clone --branch pre-workable https://github.com/SarK0Y/TAM_RUSTy.git
cd TAM_RUSTy/
cargo build --no-default-features --features in_dbg --features=mae --features=tst_macro --features=tam >  /tmp/mess 2>&1

https://github.com/SarK0Y/TAM_RUSTy/blob/52d12558ddb78f213811721561585a477f485de7/main/src/basic.pg.rs#L121

If You don't want to log variable, just add prefix 'nolog_' to its name:

let mut nolog_myvar: usize = 0;

Links:
Rolling guide of TAM (Topnotch Practical ways to use Console/Terminal): https://alg0z8n8its9lovely6tricks.blogspot.com/2024/08/tam-guide-of-features-smart-tricks.html
DISCORD: https://discord.gg/X9RBbtCN (Alg0Z).
TELEGRAM: https://t.me/+N_TdOq7Ui2ZiOTM6 (Alg0Z).
ALG0Z RU: https://dzen.ru/alg0z
ALG0Z EN: https://alg0z.blogspot.com
ChangeLog: https://alg0z8n8its9lovely6tricks.blogspot.com/2023/09/tam-changelog.html
FORUM: https://www.neowin.net/forum/topic/1430114-tam/
E-MAIL: sark0y@protonmail.com
GITHUB: https://github.com/SarK0Y/TAM_RUSTy.git
YouTube: https://www.youtube.com/@evgeneyknyazhev968
Twitter_X: https://x.com/SarK0Y8
Donations: https://boosty.to/alg0z/donate https://zap-hosting.com/en/shop/donation/1f0c83845d810df04ca74e56238399f7/

MAKE CONSOLE GREAT AGAIN.🤘

my the Best Wishes to You 🙃

Commit count: 0

cargo fmt