Skip to content

Releases: MrGunflame/snowflaked-rs

v1.0.3

24 Feb 17:11
38e2cd3
Compare
Choose a tag to compare
  • Fix sequence not getting reset when timestamp increases (#5).

v1.0.2

24 May 08:49
c23686b
Compare
Choose a tag to compare
  • Fix incorrect timestamp offset in i64::from_parts (#3).

v1.0.1

26 Apr 14:04
330950a
Compare
Choose a tag to compare
  • Fix #1: Wrap the timestamp for i64 at 41 bits and never set the sign bit of i64. (854ac25)

v1.0.0

15 Feb 13:01
1cf74e7
Compare
Choose a tag to compare
  • Remove the Clone impls for Generator and sync::Generator.
  • Mark the panic branch for new as never inlined.

v0.1.8

04 Nov 16:13
08fb2e9
Compare
Choose a tag to compare
  • Add the option to use custom epochs.
  • Add a Builder struct to configure the used epoch.
  • Add a epoch method to Generator and sync::Generator to get the configured epoch.
  • Add a snowflake structure section.
  • Update examples for sync::Generator to use the const new function.

v0.1.6

28 Oct 07:32
0217f98
Compare
Choose a tag to compare
  • Make Generator::new and sync::Generator::new const.

v0.1.5

06 Oct 09:07
4303c59
Compare
Choose a tag to compare
  • Update the internal structure of Generator and sync::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 to Generator::instance.
  • Inline sync::Generator::{new, new_checked, new_unchecked}.
  • Add benches for Generator::generate and sync::Generator::generate.

v0.1.4

23 Sep 19:20
3abc761
Compare
Choose a tag to compare
  • Fix a potential bug that could very rarely cause duplicate ids using the sync generator
  • Add more examples to docs

v0.1.2

14 Jun 17:36
d4a8c30
Compare
Choose a tag to compare
v0.1.2

v0.1.1

13 Jun 17:27
497cb56
Compare
Choose a tag to compare
v0.1.1