scsys
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.
Usage
Before you start using scsys
, make sure to add it as a dependency in your Cargo.toml
file. You can do this by adding the following lines:
[]
= true
= [
"derive",
]
= "0.2.x"
Examples
For more detailed examples, please visit the examples directory in the repository. Below are some brief examples highlighting certain features of the library.
Example 1: Using the VariantConstructors
derive macro
The VariantConstructors
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 functional constructors for each of the Sample
variants:
let a = a;
let b = b;
let c = c;
assert_eq!;
assert_eq!;
assert_eq!;
Getting Started
To get started with scsys
, you can check out the QUICKSTART.md file, which provides a step-by-step guide on how to set up your development environment and start using the library.
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.