| Crates.io | rustici |
| lib.rs | rustici |
| version | 1.1.0 |
| created_at | 2025-08-28 11:34:01.054603+00 |
| updated_at | 2025-09-04 14:24:50.695779+00 |
| description | Pure-Rust client for strongSwan's VICI protocol |
| homepage | https://github.com/mira-mobility/rustici |
| repository | https://github.com/mira-mobility/rustici |
| max_upload_size | |
| id | 1814038 |
| size | 69,595 |
A minimal Rust client for the strongSwan VICI protocol — inspired by the ideas behind davici, but implemented from scratch in Rust.
Status: experimental MVP. Pure std, blocking I/O, UNIX-only. No external deps.
UnixStream for request/response commands.libstrongswan or davici — fresh Rust code.Note: This library focuses on the protocol. It intentionally does not try to mirror the exact C API. Instead, it provides a small, idiomatic Rust surface that's easy to extend with higher-level helpers.
List IKE_SAs using the list-sas command:
use rustici::{Client, Message};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut cli = Client::connect(rustici::client::DEFAULT_SOCKET)?;
// empty request message
let req = Message::new();
let resp = cli.call("list-sas", &req)?;
println!("{}", resp);
Ok(())
}
Build and run example:
cargo run --example list_sas
This library is a Rust implementation based on the davici library from the strongSwan project.
strongSwan has been actively developed since 2005, with the modern IKE daemon written from scratch in a modular, object-oriented design. The intellectual property rights to strongSwan were acquired by secunet Security Networks AG in June 2022. We thank the strongSwan maintainers and contributors for their excellent work:
Andreas Steffen (strongSec GmbH) Tobias Brunner (codelabs GmbH) secunet Security Networks AG Martin Willi (original davici author)
This library is licensed under the GNU Lesser General Public License v2.1 or later (LGPL-2.1+) (Based on the original davici library).
Rust implementation:
See the LICENSE file for the full license text.