Expand description
This crate provides various utility functions and modules for performing common tasks in Rust applications. It aims to simplify clipboard operations, file system manipulation, keyboard and mouse input simulation, timer management, and Excel file handling.
§Features
§ctf
cargo add doe -F ctf
allow you to perform various operations with ease, such as string manipulation, urlencode urldecode,hex encode decode,base43 encode decode, and error management.
§clip
cargo add doe -F clip
simplifies clipboard management, enabling you to effortlessly interact with the system clipboard.
§mouse
cargo add doe -F mouse
offers intuitive and easy-to-use functions for simulating mouse actions.
§keyboard
cargo add doe -F keyboard
offers simulating keyboard input action with easy-to-use functions.
§kcm
kcm is short feature for keyboard clipboard mouse together
cargo add doe -F kcm
§xlsx
read edit write xlsx file
cargo add doe -F xlsx
§docx
read edit docx file
cargo add doe -F docx
§date
get and read edit date string
cargo add doe -F date
§screenshot
screenshot and get hex from screenshot image
cargo add doe -F screenshot
§images
resize add paddings,convert image format
cargo add doe -F images
Re-exports§
pub use consts::consts::*;
pub use fs::fs::*;
pub use macros::macros::*;
pub use rand::rand::*;
pub use structs::structs::*;
pub use timer::impl_timer::*;
pub use traits::traits::*;
pub use zoml::zoml::*;
Modules§
- clipboard module provides functions and structs related to clipboard operations. It allows the user to copy and paste data between the application and the clipboard.
- color module contains functions for converting grb format to hex and hex to grb format
- const data
- ctf module provides utility functions like
permutations
,hex_encode
,hex_decode
,base64_encode
,base64_decode
,php_urlencode
,php_urldecode
. - date module contains functions for get now,get_recent_seven_days,normal_date_to_excel_date,excel_date_to_normal_date
- xlsx module contains functions for reading editing docx file
- The file system (fs) module provides functions and structs for performing operations on the file system. It includes functions for reading, writing, creating, and deleting files and directories.
- images module contains functions resize add paddings,convert image format
- json module contains functions for reading, writing, and manipulating JSON files or content.
- keyboard module contains functions and structs related to keyboard input. It allows the user to simulate keyboard input, capture keystrokes, and perform other keyboard-related operations.
- macros module contains all utility macros for development
- mouse module contains functions and structs related to mouse input. It allows the user to simulate mouse input, capture mouse movements and clicks, and perform other mouse-related operations.
- get all process (name,pid) and kill process by name or pid
- A Linear Congruential Generator (LCG) is a simple type of random number generator that produces a sequence of pseudo-random numbers based on a linear recurrence relation.
- screenshot module contains functions for screenshot and get hex from screenshot image
- structs module contains definitions of custom data structures like
Bfn
,Bts
,waker_fn
. - timer module provides functions and structs for creating and managing timers. It allows the user to schedule tasks to be executed at a specific time or interval.
- traits module contains trait definitions that define shared behavior and functions
- xlsx module contains functions and structs for reading, writing, and manipulating Excel files in the XLSX format.
- zoml module contains functions for converting data between the ZOML format and CSV format.
Macros§
- get argument and collect into Vec<String>
- convert type
- implments Bfn struct and bfn! macro for Box<dyn Fn()> trait object
- convert binary string to decimal
- macro for BTreeMap
- implments Bts struct and bts! macro for Box<\dyn ToString> trait object
- run command
- sorted and deduped Vec
- has stable rust nightly return bool
- has stable rust compiler return bool
- macro for HashMap
- implement Default,Debug,Display,Clone,Drop for struct
- implmemt Clone for Struct
- implmemt Debug for Struct
- implmemt Default for Struct
- implmemt Display for Struct
- implmemt Drop for Struct
- get user input from terminal,return String
- expr return max value
- expr return memory address
- expr return min value
- mutiply two matrix
- returns a raised to the b power
- read .csv file and Collect into Vec<Vec<String>>
- remove file or folder
- run a function repeatedly, beginning after some millis, then repeating continuously at the given interval.
- run a function once after a particularized delay(millis)
- return the array elements arranged from outermost elements to the middle element, traveling clockwise (n x n)
- socketaddr
- sorted new Vec
- Spliy &str by spliter and collect into Vec<String>
- like pythons os.system() function
- implment targets! for return Vec<(Box<dyn ToString>,Box<dyn ToString>)>
- get current UTC-timestamp
- clone element by index
- convert vec elements type
- parse Vec element to type, parse Vec<&str> Collect to Vec<type>
- find element position and collect into Vec
- find the fist element and remove
- find the element and remove all
- take size of elements and return a new vec
- convert vec item to String,return Vec<String>
- enumerate all indexs and elements collect tuple of vec
- Merge two Vec return merged Vec
- slice vec by range
- sort vec and return sorted vec
- get vec type ,return string type value
- zip two vec elements in tuple
Functions§
- digits
- The Vec sort all elements can be repeated to define the longest shortest size
- letters_and_digits
- lowercase_letters
- permutations
- Rust is a wrapper for the standard library’s std::process::Command function, which is used to execute external commands
- uppercase_letters
- generate a random UUID