![Build Status](https://github.com/nikdeapen/enc/actions/workflows/check.yml/badge.svg) # enc This library aids in processing encoded data. ## Dependencies & Features **Dependency:** enc = { version = "0.7.0", features = ["full"] } There are no transitive-dependencies. **Features:** - **full** - **base-64** - **hex** - **percent** - **var-int** ## Data & Value Encoders There are separate traits for encoding data and values. The `src/data` folder holds the traits: `Encoder`, `StringEncoder`, `Decoder` and `Validator`. These provide an interface for encoders that operate on slices of data such as `hex` & `base-64`. The `src/value` folder holds the traits: `EncodedLen`, `EncodeToSlice`, `EncodeToWrite` etc. These provide an interface for values that know how to encode and decode themselves such as variable-length integers (`var-int`) and can be easily extended by custom types.