Commit Graph

21 Commits

Author SHA1 Message Date
Noah Kennedy 2fffe3c763
benchmarks: move crypto benchmarks to criterion (#271) 2022-06-24 18:56:14 +00:00
Noah Kennedy 55ea9fdff6
structure: split boringtun into a workspace (#232)
This also fixes some CI issues on macos.
2022-03-02 14:36:30 -06:00
Jeff Hiner 2300eecef5
The ring crate works just fine on ARM. (#224)
If it doesn't, let's fix it there.
2022-02-17 11:48:17 -07:00
Jeff Hiner 3396860d5f emit=asm breaks clippy, and is unnecessary 2022-02-16 18:50:19 -07:00
Jeff Hiner cc198597ba Remove several unsafe bits 2022-02-15 10:40:33 -07:00
Noah Kennedy 090b805825
chore: prep version 0.4.0 (#219) 2022-02-14 20:01:20 -06:00
Noah Kennedy a1c96277bb
chore: update deps (#216) 2022-02-12 16:45:08 -06:00
Noah Kennedy 24a1ab2ef7
Migrate logging from slog to tracing (#194) 2021-10-22 16:20:29 -05:00
Marco Ieni 6a90f3aad9 Cargo.toml: remove "readme" field 2021-10-06 18:16:29 -07:00
Brendan McMillion f107b55cd7 Move incompatible deps behind flag. 2021-08-09 13:46:14 -06:00
Jeff Hiner cb83c8e0d6 Update and rework dependencies
Update parking_lot, base64, and slog.
Move binary dependencies into a feature, and build by default.
This allows library users to avoid building clap, slog-term, and daemonize.
Don't build binary deps for --lib in CI/CD
2021-07-26 09:43:46 -06:00
Andy Grover e04a7da322
Use ip_network_table instead of homegrown trie impl (#184)
ip_network_table crate is exactly what we need so use it instead of
own trie impl. Big code/complexity reduction. Keep all unit tests.

This in turn uses ip_network and treemap crates, these both
look good too. (wireguard-rs also uses these, fwiw.)

Make small changes to rest of code as needed. AllowedIps interface is
mostly the same but I couldn't resist a few tweaks.
2021-07-21 09:14:18 -07:00
Vlad Krasnov 402f55060e Use slog internally 2020-10-28 16:34:39 -04:00
Vlad Krasnov a50f6e4c90 Move from spin to parking-lot locks 2020-10-28 16:34:39 -04:00
Vlad Krasnov dbeb35ede2
Update dependencies (#123) 2020-04-05 14:45:23 +08:00
Chris Branch 700f20bf2a Upgrade ring to 0.16 (#115)
The API for SealingKey and OpeningKey changed to have these structs
manage their own nonces. Instead we switch to LessSafeKey so that we can
continue to manually manage nonce values.
2020-01-28 14:42:55 +08:00
Vlad Krasnov 0b980a2f5a
Fix Rust 1.37 build and clippy warnings (#103) 2019-09-19 14:40:40 -05:00
ashley williams d292ea7505
feat(deps): update daemonize (#28) 2019-03-27 12:49:51 -05:00
ashley williams 34cc88c1d6
2018 edition (#21)
* feat(edition): cargo fix --edition

* fix: variable does not need to be mutable

* feat(edition): edition=2018, remove externs

* fix(style): appease cargo fmt

* fix(imports): prepend crate::

* fix(edition): extern macro -> use

* feat(edition): remove last externs

* fix(edition): un-break cargo bench
2019-03-26 11:48:55 -05:00
ashley williams a1b533d7a7
feat(manifest): fill out required fields (#19) 2019-03-23 13:08:01 -05:00
Vlad Krasnov e06696068c boringtun - a userspace Wireguard implementation 2019-03-22 15:36:20 -04:00