The previous code was relying on the to_be and to_le functions from the standard library. These now rely on macros that I wrote to handle the bit packing and unpacking. These were macros and not functions because it is really hard to define the types and capabilities needed to turn them into general functions. As such, the macros should never be published publically and the Converters should be used for conversions. The Transmutable property should be used for serialization and internally the primitive types, Elements, all use the Converter functions and any other objects should use the Transmutable primitives to build their binary forms.
25 lines
560 B
TOML
25 lines
560 B
TOML
[package]
|
|
name = "alchemy"
|
|
version = "1.0.0"
|
|
authors = ["Jason Travis Smith <Myrddin@CyberMagesLLC.com>"]
|
|
description = "Handles converting values to and from a binary format."
|
|
license = ""
|
|
repository = "https://gitlab.com/CyberMages/alchemy.git"
|
|
documentation = ""
|
|
keywords = ["converter", "binary"]
|
|
|
|
|
|
[features]
|
|
default = []
|
|
convert_sigils = ["sigils"]
|
|
|
|
[dependencies.scribe]
|
|
git = "https://gitlab.com/CyberMages/scribe.git"
|
|
|
|
[dependencies.sigils]
|
|
optional = true
|
|
git = "https://gitlab.com/CyberMages/sigils.git"
|
|
|
|
[dev-dependencies]
|
|
rand = { version = "*" }
|