rocket_conditional_attach 0.1.1

Conditionally attach a fairing
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented0 out of 4 items with examples
  • Size
  • Source code size: 28.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 139.13 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 34s Average build duration of successful builds.
  • all releases: 34s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • jhpratt/rocket_conditional_attach
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jhpratt

rocket_conditional_attach

Use this crate to conditionally attach a fairing.

// Include the relevant trait via the prelude.
use rocket_conditional_attach::prelude::*;

// Alternatively, you can also include the trait directly.
// use rocket_conditional_attach::ConditionalAttach;

rocket::ignite()
	...
	.attach_if(cfg!(feature = "telemetry"), Telemetry::default())
	...