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 ctfallow 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 clipsimplifies clipboard management, enabling you to effortlessly interact with the system clipboard.
mouse
cargo add doe -F mouseoffers intuitive and easy-to-use functions for simulating mouse actions.
keyboard
cargo add doe -F keyboardoffers simulating keyboard input action with easy-to-use functions.
clip
set and get clipboard text
cargo add doe -F clipkcm
kcm is short feature for keyboard clipboard mouse together
cargo add doe -F kcmxlsx
read edit write xlsx file
cargo add doe -F xlsxdocx
read edit docx file
cargo add doe -F docxRe-exports
pub use fs::fs::*;pub use macros::macros::*;pub use structs::structs::*;pub use timer::impl_timer::*;pub use traits::traits::*;
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.
- ctf module provides utility functions like
permutations,hex_encode,hex_decode,base64_encode,base64_decode,php_urlencode,php_urldecode. - 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.
- 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.
- 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.
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
- The Vec sort all elements can be repeated to define the longest shortest size
- permutations
- Rust is a wrapper for the standard library’s std::process::Command function, which is used to execute external commands