]> git.ipfire.org Git - thirdparty/tor.git/commit
Include a basic Rust wrapper for Equi-X and HashX
authorMicah Elizabeth Scott <beth@torproject.org>
Wed, 26 Jul 2023 02:28:06 +0000 (19:28 -0700)
committerMicah Elizabeth Scott <beth@torproject.org>
Wed, 26 Jul 2023 19:27:15 +0000 (12:27 -0700)
commit95bcd17705af8e85df9893025608f2ea4f57bf37
tree77d1930bc3860c1e501f9f0f2994eae9cfa0e017
parent1e3b5c94abcc4802f8932c087d2a288c153dc22a
Include a basic Rust wrapper for Equi-X and HashX

The idea behind this is that we may want to start exporting more pieces
of c-tor as Rust crates so that Arti can perform cross compatibility and
comparison testing using Rust tooling.

This turns the 'tor' repo into a Cargo workspace, and adds one crate to
start with: "tor-c-equix", rooted in src/ext/equix. This actually
includes both Equi-X itself and HashX, since there's less overall
duplication if we package these together instead of packaging HashX
separately.

This patch adds a basic safe Rust interface, but doesn't expose any
additional internals for testing purposes.

No changes to the C code here or the normal Tor build system.

Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
.gitignore
Cargo.toml [new file with mode: 0644]
doc/HACKING/Rust.md [new file with mode: 0644]
src/ext/equix/Cargo.toml [new file with mode: 0644]
src/ext/equix/build.rs [new file with mode: 0644]
src/ext/equix/src/lib.rs [new file with mode: 0644]