x16rs-sys 0.1.2

x16rs c binding for rust
Documentation
# x16rs-sys


Official Rust FFI bindings for the Hacash [X16RS](https://hacash.org) hashing algorithm (C implementation).

```rust
use x16rs_sys::x16rs_hash;

let input = [0u8; 32];
let digest = x16rs_hash(1, &input);
assert_ne!(digest, [0u8; 32]);
```

## Changelog


### 0.1.2


- **Fix UB**: declare FFI output pointer as `*mut u8` (was `*const u8`). Writing through `*const` is undefined behavior; under optimization LLVM may assume the output buffer is unchanged and return all zeros.
- **Fix alignment**: copy input/output via `memcpy` in C instead of casting possibly unaligned `uint8_t*` to `uint32_t*`.
- Align C API types with `uint8_t*` and add regression tests.