#actix-web #web-framework #actix-middleware #middleware #web-api #actix #treblle

actix-treblle

Treblle makes it super easy to understand what's going on with your APIs and the apps that use them

6 stable releases

4.0.5 May 31, 2022
4.0.4 May 30, 2022
4.0.3 May 27, 2022
4.0.0 May 25, 2022

#2199 in Web programming

Download history 4/week @ 2024-07-17 35/week @ 2024-07-24 30/week @ 2024-07-31 4/week @ 2024-08-07 5/week @ 2024-08-14 1/week @ 2024-08-28 9/week @ 2024-09-04 14/week @ 2024-09-11 51/week @ 2024-09-18 36/week @ 2024-09-25 5/week @ 2024-10-09 122/week @ 2024-10-16 14/week @ 2024-10-23

141 downloads per month

MIT license

33KB
586 lines

Crates.io

actix-treblle

actix-treblle = "4.0.5"

Treblle.com connector for Rust Actix web framework.

Stay in tune with your APIs

Treblle makes it super easy to understand what's going on with your APIs and the apps that use them.

With Treblle

  • Auto-generated and updated docs
  • Self service integration support
  • Get in-depth API insights
  • 90% less meetings
  • Complete API analytics
  • Complete picture of your API
  • 1 single awesome service
  • Know exactly what's ok and what not
  • Quality score of your API
  • 1 click testing
  • Device detection
  • Endpoint grouping

Installation

Go to Treblle.com register and create a project, copy your project_id and go and get your api_key from settings.

Add this crate to your Rust Actix v4 powered application as a regular middleware, give it project_id and api_key, turn on the features you might need and thats it! Watch your requests get logged in Treblle project.

Example:

use actix_web::{App, HttpServer};
use actix_treblle::Treblle;

#[actix_web::main]
async fn main() -> std::io::Result<()> {
   HttpServer::new(|| {
       App::new()
           .wrap(Treblle::new("project_id".to_string(), "api_key".to_string()))
           .route("/hello", web::get().to(|| async { "Hello World!" }))
   })
   .bind(("127.0.0.1", 8080))?
   .run()
   .await
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~17–29MB
~502K SLoC