Skip to main content

tor 0.2.1 copy "tor: ^0.2.1" to clipboard
tor: ^0.2.1 copied to clipboard

A multi-platform Flutter plugin for managing a Tor proxy. Based on arti.

tor #

foundation-Devices/tor is a multi-platform Flutter plugin for managing a Tor proxy. Based on arti.

Getting started #

Install rust #

Use rustup, not homebrew.

Install cargo ndk #

cargo install cargo-ndk

Cargokit #

Cargokit builds and bundles the native Rust library (in rust/) for each platform, just flutter run it or run it in Android Studio or VS Code (untested).

To update Cargokit in the future, use:

git subtree pull --prefix cargokit https://github.com/irondash/cargokit.git main --squash

Development #

The Dart bindings in lib/src/rust are generated from the Rust API in rust/ by flutter_rust_bridge.

Install the codegen tool once, matching the flutter_rust_bridge version in pubspec.yaml:

cargo install flutter_rust_bridge_codegen --version 2.11.1

Then, after changing the Rust API, regenerate the bindings with:

flutter_rust_bridge_codegen generate

Example app #

flutter run in example to run the example app

See example/lib/main.dart for usage.

13
likes
150
points
356
downloads

Documentation

API reference

Publisher

verified publisherfoundationdevices.com

Weekly Downloads

A multi-platform Flutter plugin for managing a Tor proxy. Based on arti.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_rust_bridge, freezed_annotation, path_provider

More

Packages that depend on tor

Packages that implement tor