scsys
Warning: the library is still in the early stages of development so make sure to use with caution!
Welcome to scsys
, a collection of useful utilities, types, and other primitives that are used in various projects developed by Scattered Systems. The library is designed to be a general-purpose utility library that can be used in any Rust project, aiming to provide a standardized set of tools that can be used to build robust and reliable software.
Getting Started
Prerequisites
Rust Toolchain
Make sure you have the latest version of the Rust toolchain installed on your system.
If you don't have it installed, you can install it by following the instructions on the official website.
|
Building from the source
Clone the repository
Start by cloning the repository locally to your machine.
Building Locally
Testing
Automatically format and analyze the codebase before building then testing.
Usage
Add the dependency to your project
[]
= ["full"]
= "0.2.*"
Examples
Example: Using the Getter
derive macro
The Getter
derive macro can be used to automatically generate functional accessors for named fields within a given structure. For example, given the following structure:
we can automatically generate a getter method for the weight
field:
let node = Node ;
assert_eq!;
License
Licensed under the Apache License, Version 2.0, (LICENSE-APACHE)
Contribution
Contributions are welcome, however, ensure that you have read the CONTRIBUTING.md file before submitting a pull request.