⚠️ DEPRECATED: ntp_usg
This crate is deprecated as of version 3.0.0 and is no longer maintained.
The monolithic ntp_usg crate has been split into three focused, well-maintained crates:
| Crate | Description | Documentation |
|---|---|---|
ntp_usg-proto |
NTP protocol types, extension fields, and NTS cryptographic primitives | docs.rs |
ntp_usg-client |
NTP client library with sync, async (tokio/smol), and NTS support | docs.rs |
ntp_usg-server |
NTP server library with tokio/smol and NTS-KE support | docs.rs |
Why was this crate split?
The split provides several benefits:
- Reduced dependencies: Use only what you need (client, server, or just protocol types)
- Faster compile times: Smaller crates compile faster
- Better maintainability: Each crate has a focused purpose
- Clearer documentation: Each crate's docs focus on its specific use case
- Independent versioning: Each component can evolve at its own pace
Migration Guide
For NTP Client Users
Before (v2.x):
[]
= "2.0"
use request;
After (v3.x):
[]
= "3.0"
use request;
For NTP Server Users
After (v3.x):
[]
= { = "3.0", = ["tokio"] }
use *;
// See ntp_usg-server documentation for examples
For Protocol/Type Users
If you only need NTP protocol types and parsing (no network I/O):
[]
= "3.0"
use ;
Feature Flags
The new crates use more granular feature flags:
ntp_usg-proto:std(default),alloc,ntsntp_usg-client:tokio,nts,clock,smol-runtime,nts-smolntp_usg-server:tokio,nts,smol-runtime,nts-smol
See each crate's documentation for detailed feature information.
Compatibility
This v3.0.0 release of ntp_usg re-exports all three new crates for backwards compatibility, but you will receive deprecation warnings. We strongly recommend migrating to the new crates.
Versions 2.0.3 and below have been yanked from crates.io to encourage migration.
Links
- Repository: github.com/192d-Wing/ntp_usg
- Issues: github.com/192d-Wing/ntp_usg/issues
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.