imbios / lorust Goto Github PK
View Code? Open in Web Editor NEWModern Rust utility library delivering modularity, performance & extras; or simply Rust version of Lodash
Home Page: https://crates.io/crates/lorust
License: Apache License 2.0
Modern Rust utility library delivering modularity, performance & extras; or simply Rust version of Lodash
Home Page: https://crates.io/crates/lorust
License: Apache License 2.0
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.
string
under the src
directory.string
utility functions within this module, such as:
camelCase
capitalize
endsWith
startsWith
trim
toLower
toUpper
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
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.
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.
Currently, the Lorust library lacks support for utility functions dealing with numbers. This leaves a gap in functionality that could benefit various applications that require mathematical operations, rounding, or other number manipulations.
number
under the src
directory.number
utility functions in this module, such as:
add
ceil
floor
max
min
round
subtract
number
category is now supported.Code Example:
// src/number/mod.rs
pub fn add(a: f64, b: f64) -> f64 {
a + b
}
pub fn ceil(value: f64, precision: u32) -> f64 {
// implementation here
}
// ... more functions
An alternative approach would be to introduce these functions incrementally in smaller batches, prioritizing the most commonly used or requested ones first.
Having a number
category that mimics lodash's number
utilities would provide a more complete utility experience in Rust, thereby possibly attracting more developers to adopt Lorust in their projects. This would align well with the library's goal of being the Rust version of Lodash.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
Cargo.toml
serde_json 1.0.106
regex 1.9.5
unicode-normalization 0.1.22
log 0.4.20
.github/workflows/ci.yml
actions/checkout v4
The Lorust library currently does not offer date manipulation or formatting utility functions. This omission makes the library less versatile for users who frequently use date and time in their applications.
date
module under the src
directory.isAfter
isBefore
isSame
toDate
addDays
subDays
date
category, providing usage examples if possible.Code Example:
// src/date/mod.rs
use chrono::{DateTime, Utc};
pub fn is_after(a: DateTime<Utc>, b: DateTime<Utc>) -> bool {
// implementation here
}
pub fn is_before(a: DateTime<Utc>, b: DateTime<Utc>) -> bool {
// implementation here
}
// ... more functions
As an alternative, we could initially focus on a smaller set of critical date functions, releasing them as a subset of the full date
module. Additional functions could be added over time based on user feedback and needs.
The inclusion of a date
module would significantly expand Lorust's utility, making it a more comprehensive tool for Rust developers. This feature could encourage the adoption of Lorust for projects that require date manipulation, thus contributing to the library's goal to be a complete utility library for Rust.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.