Crates.io | inigo-rs |
lib.rs | inigo-rs |
version | |
source | src |
created_at | 2022-11-05 16:15:52.911255 |
updated_at | 2025-02-13 18:54:47.011871 |
description | Inigo plugin |
homepage | |
repository | https://github.com/inigolabs/inigo-rs |
max_upload_size | |
id | 705918 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Gain instant monitoring and protection into GraphQL APIs. Unblock platform teams and accelerate GraphQL adoption. Inigo's platform integration offers GraphQL Security, Analytics, Rate-limiting, Access Control and more.
This package is the Inigo plugin for the Apollo Rust Router
cargo add inigo-rs
use apollo_router::register_plugin;
use inigo_rs::Middleware;
register_plugin!("inigo", "middleware", Middleware);
fn main() {
match apollo_router::main() {
Ok(_) => {}
Err(e) => {
eprintln!("{}", e);
std::process::exit(1);
}
}
}
use apollo_router::register_plugin;
use inigo_rs::registry::InigoRegistry;
use inigo_rs::Middleware;
register_plugin!("inigo", "middleware", Middleware);
fn main() {
match InigoRegistry::new(None).and(apollo_router::main()) {
Ok(_) => {}
Err(e) => {
eprintln!("{}", e);
std::process::exit(1);
}
}
}
plugins:
inigo.middleware:
token: "your-inigo-service-token"
Tip: It can also be an environment variable
plugins:
inigo.middleware:
token: "${env.INIGO_SERVICE_TOKEN}"
plugins:
inigo.middleware:
token: "${env.INIGO_SERVICE_TOKEN}"
auto_download_library: true
INIGO_LIB_PATH=/inigo-linux-amd64.so # Change depending on path/file name (platform and architecture)
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Distributed under the MIT License.