Skip to content

Commit

Permalink
Release 0.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
njaremko committed Oct 14, 2023
1 parent bdb8737 commit e2b867d
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 67 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### 0.0.13

- Ability to serialize logout requests
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
- luqmana
- RavuAlHemio
- samueltardieu
- ServiusHack
50 changes: 28 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "samael"
version = "0.0.12"
version = "0.0.13"
authors = ["Nathan Jaremko <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -20,24 +20,24 @@ crate-type = ["staticlib", "rlib"]
xmlsec = ["libc", "lazy_static", "libxml"]

[build-dependencies]
pkg-config = "^0.3.17"
bindgen = "^0.65.1"
pkg-config = "^0.3.17"
bindgen = "^0.68.1"

[dependencies]
openssl = "^0.10.0"
openssl-sys = "^0.9.0"
openssl-probe = "^0.1.2"
url = "^2.1.1"
quick-xml = { version = "^0.28.2", features = [ "serialize" ] }
quick-xml = { version = "^0.30.0", features = ["serialize"] }
serde = { version = "^1.0.0", features = ["derive"] }
chrono = { version = "^0.4.0", features = ["serde"] }
base64 = "^0.21.0"
flate2 = "^1.0.0"
rand = "^0.8.4"
derive_builder = "^0.12.0"
libxml = { version = "^0.3.1", optional = true}
uuid = { version = "^1.3.0", features = [ "v4" ] }
libxml = { version = "^0.3.1", optional = true }
uuid = { version = "^1.3.0", features = ["v4"] }
data-encoding = "2.2.0"
libc = {version = "^0.2.66", optional = true}
lazy_static = {version = "^1.4.0", optional = true}
libc = { version = "^0.2.66", optional = true }
lazy_static = { version = "^1.4.0", optional = true }
thiserror = "^1.0.40"
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ If you want to use the `"xmlsec"` feature, you'll need to install the following

# Build instructions

We use [nix](https://nixos.org/download.html) to faciliate reproducible builds of `samael`.
We use [nix](https://nixos.org) to faciliate reproducible builds of `samael`.
It will ensure you have the required libraries installed in a way that won't cause any issues with the rest of your system.
If you want to take advantage of this, you'll need to put in a little bit of work.

1. [Install nix](https://nixos.org/download.html)
2. Enable [nix flake support](https://nixos.wiki/wiki/Flakes#Non-NixOS)
3. Install [direnv](https://direnv.net/)
4. Install [cachix](https://docs.cachix.org/installation)
5. Run `cachix use nix-community` to enable a binary cache for the rust toolchain (otherwise you'll build the rust toolchain from scratch)
6. Run `nix-env -f '<nixpkgs>' -iA nix-direnv` and `echo "source $HOME/.nix-profile/share/nix-direnv/direnvrc" > $HOME/.direnvrc` to improve nix support for direnv
7. `cd` into this repo and run `nix build` then, after that finishes, `direnv allow`
8. Install the [direnv VS Code extension](https://marketplace.visualstudio.com/items?itemName=mkhl.direnv)
1. [Install nix](https://github.com/DeterminateSystems/nix-installer)
1. Install [direnv](https://direnv.net/) and [cachix](https://docs.cachix.org)
```
# Add ~/.nix-profile/bin to your path first
nix profile install nixpkgs/release-23.05#direnv
nix profile install nixpkgs/release-23.05#cachix
```
1. Run `cachix use nix-community` to enable a binary cache for the rust toolchain (otherwise you'll build the rust toolchain from scratch)
1. `cd` into this repo and run `direnv allow`
1. Install the [direnv VS Code extension](https://marketplace.visualstudio.com/items?itemName=mkhl.direnv)

## Building the library

Expand All @@ -52,6 +54,7 @@ If you followed the above instructions, just `cd`-ing into the directory will se
but if you don't want to install `direnv`, then just run `nix develop`.

From their you can build as normal:

```sh
cargo build --features xmlsec
cargo test --features xmlsec
Expand Down
55 changes: 28 additions & 27 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
rust-overlay = {
Expand Down

0 comments on commit e2b867d

Please sign in to comment.