Skip to content

Instantly share code, notes, and snippets.

View kinggoesgaming's full-sized avatar
👀
404 Not Found

Hunar Roop Kahlon kinggoesgaming

👀
404 Not Found
View GitHub Profile

Hello, fellow Rustaceans,

As you know that [uuid] v[0.7.0-beta] was released last week and as the changes in the release are very significant, we saw it fit to write up a transition guide for previous users of [uuid].

The major focus of this release was refactoring the codebase for maintainability and general use. In the process, we ended up with some breaking changes.

  • The minimum rust version was bumped from 1.18.0 to 1.22.0.
  • Items in the [uuid] prelude that have been refactored may need to adjustment accordingly.
  • 0.7.0 splits returning error into 2: uuid::parser::ParseError, for string errors and uuid::BytesError, for handling slices.
impl str::FromStr for Uuid {
type Err = parser::UuidParseError;
fn from_str(uuid_str: &str) -> Result<Uuid, Self::Err> {
Uuid::parse_str(uuid_str)
}
}
error: unterminated block comment
--> src/adapter/core_support.rs:44:1
|
44 | / /*macro_rules! uuid_fmt {
45 | | ($owner:expr) => {
46 | |
47 | | for byte in &self.inner.bytes {
... |
132 | |
133 | |
macro_rules! uuid_adapter {
($owned:ident, $ref:ident) => {
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct $owned {
inner: Uuid,
}
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct $ref<'a> {
inner: &'a Uuid,
case 4:
try(BufferedWriter bw = new BufferedWriter(new FileWriter("active.txt"))) {
for (Active active : main.getActive()) {
bw.append("\"");
bw.append(active.getName());
bw.append("\"\t");
bw.append(Long.toString(active.getLoan()));
bw.append("\t");
running 8 tests
test bench_log_discard_kv ... bench: 4 ns/iter (+/- 0)
test bench_parse ... bench: 984 ns/iter (+/- 139)
test bench_parse_invalid_character ... bench: 55 ns/iter (+/- 6)
test bench_parse_invalid_group_len ... bench: 59 ns/iter (+/- 15)
test bench_parse_invalid_groups ... bench: 81 ns/iter (+/- 20)
test bench_parse_invalid_len ... bench: 3 ns/iter (+/- 0)
test bench_valid_hyphenated ... bench: 68 ns/iter (+/- 9)
test bench_valid_short ... bench: 56 ns/iter (+/- 7)
/home/developer/.cargo/bin/cargo build --color=always --all-features
Compiling uuid v0.6.1 (file:///home/developer/src/uuid)
error[E0432]: unresolved import `serde::de`
--> src/serde.rs:2:15
|
2 | use ::serde::{de, Deserialize, Deserializer, Serialize, Serializer};
| ^^ no `de` in `serde`
error[E0432]: unresolved import `serde::Deserialize`
--> src/serde.rs:2:19

Note: for support questions, please use gitter. This repository's issues are reserved for feature requests and bug reports.

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

Description