diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-11-30 21:04:12 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-30 21:04:12 -0600 |
| commit | 6c110f2731c3893af397cc6a660f374ff705c99b (patch) | |
| tree | d3441af29cf40b49d474fc04aa1f426ad4292fa0 /azalea-auth/src/lib.rs | |
| parent | 6930966aabf9b49fb6a0dc8b61076fa3f1abc298 (diff) | |
| download | azalea-drasl-6c110f2731c3893af397cc6a660f374ff705c99b.tar.xz | |
Add `online-mode` Cargo feature (#281)
* Add `online-mode` cargo feature
* fix bad formatting in Cargo.toml
Diffstat (limited to 'azalea-auth/src/lib.rs')
| -rw-r--r-- | azalea-auth/src/lib.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/azalea-auth/src/lib.rs b/azalea-auth/src/lib.rs index 1643bf04..a024f4d5 100644 --- a/azalea-auth/src/lib.rs +++ b/azalea-auth/src/lib.rs @@ -1,10 +1,15 @@ #![doc = include_str!("../README.md")] +#[cfg(feature = "online-mode")] mod auth; +#[cfg(feature = "online-mode")] pub mod cache; +#[cfg(feature = "online-mode")] pub mod certs; -pub mod game_profile; -pub mod offline; +#[cfg(feature = "online-mode")] pub mod sessionserver; - +#[cfg(feature = "online-mode")] pub use auth::*; + +pub mod game_profile; +pub mod offline; |
