Clear and concise description of the problem
The current implementation of Lorust lacks utility functions related to string manipulation. This omission limits the library's usability for string processing tasks, common in many software projects.
Suggested solution
- Create a new module named
string under the src directory.
- Implement the most frequently used lodash
string utility functions within this module, such as:
camelCase
capitalize
endsWith
startsWith
trim
toLower
toUpper
- Add comprehensive unit tests for each function to ensure correctness.
- Update the README file to indicate that the
string category is now supported, and perhaps include a few code examples.
Code Example:
// src/string/mod.rs
pub fn camel_case(s: &str) -> String {
// implementation here
}
pub fn capitalize(s: &str) -> String {
// implementation here
}
// ... more functions
Alternative
A phased approach could be adopted, where the functions are implemented and released in smaller groups. This would allow for quicker initial releases and can be prioritized based on community feedback or the most common use cases.
Additional context
Adding a string module with utility functions similar to those in lodash's string category would enhance Lorust's overall functionality. This addition would make the library more appealing to Rust developers who have tasks related to string manipulation and may result in increased adoption of Lorust.
Validations
Clear and concise description of the problem
The current implementation of Lorust lacks utility functions related to string manipulation. This omission limits the library's usability for string processing tasks, common in many software projects.
Suggested solution
stringunder thesrcdirectory.stringutility functions within this module, such as:camelCasecapitalizeendsWithstartsWithtrimtoLowertoUpperstringcategory is now supported, and perhaps include a few code examples.Code Example:
Alternative
A phased approach could be adopted, where the functions are implemented and released in smaller groups. This would allow for quicker initial releases and can be prioritized based on community feedback or the most common use cases.
Additional context
Adding a
stringmodule with utility functions similar to those in lodash'sstringcategory would enhance Lorust's overall functionality. This addition would make the library more appealing to Rust developers who have tasks related to string manipulation and may result in increased adoption of Lorust.Validations