ExBin is a Rust crate that provides efficient binary serialization and deserialization. If you're using NixOS and want to use this crate, here's how to get started:
Open your terminal emulator.
If you haven't already done so, install Rust. You can do this with a single command:
$ sudo apt-get update
$ sudo apt-get install rustc
Next, you'll need to clone the ExBin repository:
git clone https://github.com/m1dnight/exbin
Once you've cloned the repository you need to install the dependencies. This can be done via Nix package manager by adding the following into your configuration.nix:
environment.systemPackages = with pkgs; [
cargo
rustc
cmake
libsodium
libsodium.dev
];
or using the following command in your terminal:
# Using Nix package manager
$ nix-shell -p cargo rustc cmake libsodium libsodium.dev
Now you can build the ExBin crate:
$ cargo build --release
This will build the crate in release mode.
Test the crate with:
$ cargo test
That's it! You've successfully installed ExBin on NixOS. You now have an efficient binary serialization and deserialization library for use in your Rust projects.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!