kurtlawrence / guid-create Goto Github PK
View Code? Open in Web Editor NEWRust helper for randomly creating GUIDs
License: MIT License
Rust helper for randomly creating GUIDs
License: MIT License
I'm wanting to store objects in a std::collections::HashMap so I can look them up by their GUID, but I'm running into the problem that GUID is not a valid type for the hashmap's key since it doesn't impl Hash. I've got a workaround, but ... it's inartful.
Because the members of a GUID are all hashable, I imagine it's a case of annotating the struct with #[derive(Hash)]
or so.
Would you be willing to impl the necessary trait for me?
As of right now, from time to time, dependencies were updated.
There aren't a lot but it would be nice from a sec and maintenance perspective to track updates on dependencies and from time to time, release a new version once they have been updated on the Cargo.toml
.
From my experience, dependabot
is the bot from GitHub configured via a yaml file but I prefer renovate
a git distro independent and open source one and integrated into GitHub via a app on the marketplace. Renovate will automatically detect which package managers and where they are used. https://github.com/marketplace/renovate
In the end its up to you @kurtlawrence
warning: the following packages contain code that will be rejected by a future version of Rust: winapi v0.2.8
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 12`
Hello @kurtlawrence , can you let the data inside of GUID touch by outside world? the simple way is like:
pub GUID { pub data: [u8; 16], }
or a elegant way like:
pub data(self) -> [u8;16] { self.data }
then we can get the whole data easily.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
Cargo.toml
rand 0.8
serde 1
quickcheck 1
quickcheck_macros 1
winapi 0.3.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.