Releases: MrGunflame/snowflaked-rs
Releases · MrGunflame/snowflaked-rs
v1.0.3
v1.0.2
v1.0.1
v1.0.0
- Remove the
Clone
impls forGenerator
andsync::Generator
. - Mark the panic branch for
new
as never inlined.
v0.1.8
- Add the option to use custom epochs.
- Add a
Builder
struct to configure the used epoch. - Add a
epoch
method toGenerator
andsync::Generator
to get the configured epoch. - Add a snowflake structure section.
- Update examples for
sync::Generator
to use the constnew
function.
v0.1.6
- Make
Generator::new
andsync::Generator::new
const.
v0.1.5
- Update the internal structure of
Generator
andsync::Generator
to only use 8 bits of memory. - Update the
sync::Generator::generate
implementation to compare-and-swap the sequence and timestamp at once. - Add
sync::Generator::instance
akin toGenerator::instance
. - Inline
sync::Generator::{new, new_checked, new_unchecked}
. - Add benches for
Generator::generate
andsync::Generator::generate
.
v0.1.4
- Fix a potential bug that could very rarely cause duplicate ids using the
sync
generator - Add more examples to docs
v0.1.2
v0.1.2
v0.1.1
v0.1.1