Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lost22git/nim_xid

xid for nim lang
https://github.com/lost22git/nim_xid

nim nim-lang xid

Last synced: 13 days ago
JSON representation

xid for nim lang

Awesome Lists containing this project

README

        

# Xid for Nim lang

> NOTE:
> Would be disordered in a second when counter overflow 3bytes.
> Not applicable to scenarios where ordered data is imported in batches.
> A simple solution:
> Compare the id generated each time with the last one. If it is less than the last generated id, wait for a while and try again.

[API DOC](https://lost22git.github.io/nim_xid/xid.html)

## Resources

- [xid go](https://github.com/rs/xid)
- [xid rust](https://github.com/kazk/xid-rs)

## Run tests

```sh
nimble test
```

## Run bench

```sh
nimble bench
```