Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for uuid seams broken. #20

Closed
Superhepper opened this issue Jun 30, 2020 · 3 comments
Closed

Support for uuid seams broken. #20

Superhepper opened this issue Jun 30, 2020 · 3 comments

Comments

@Superhepper
Copy link

I am having issues with getting the feature to use Uuid to work.

Cargo.toml:

[dependencies]
protocol-derive = "3.1.3"
protocol= { version = "3.1.3", features = ["uuid"] }
uuid="0.8.1"

Trying to compile something simple as

use uuid::Uuid;
use protocol_derive::Protocol;

#[derive(Protocol, Debug, Copy, Clone, PartialEq, Eq)]
pub struct Foo {
    pub id: Uuid,
}

And then I got a compiler error:

#[derive(Protocol, Debug, Copy, Clone, PartialEq, Eq)]
|        ^^^^^^^^ the trait `id::__impl_protocol___Parcel_FOR_Foo::protocol::HighLevel` is not implemented for `uuid::Uuid`

Am I missing something?

@Superhepper Superhepper changed the title Support ofr uuid seams broken. Support for uuid seams broken. Jun 30, 2020
@dylanmckay
Copy link
Owner

I managed to reproduce this - it is fixed in release 3.1.5.

@dylanmckay
Copy link
Owner

I'm going to close this for now but feel free to re-open if the issue persists.

@Superhepper
Copy link
Author

Superhepper commented Jul 1, 2020

I have tested it and it compiles now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants