Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Integrate RON #269

Merged
merged 6 commits into from
Aug 6, 2017
Merged

Integrate RON #269

merged 6 commits into from
Aug 6, 2017

Conversation

torkleyy
Copy link
Member

@torkleyy torkleyy commented Aug 4, 2017

No description provided.

@Xaeroxe
Copy link
Member

Xaeroxe commented Aug 4, 2017

looks good to me, but for some reason the documentation is failing to generate?

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nuts:

  • ~400 LOC removed
  • cleaner actual configuration files
  • less macro magic on the Rust side

/me 😍 it!

#[serde(default)]
pub multisampling: u16,
/// Sets the visibility of the window.
#[serde(default = "true")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it doesn't like this "true". Perhaps, quoting should not be here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I know that it doesn't work yet. For whatever reason it accepts a function name. I'll try to make a PR for #[serde(default_value=...)].

@Xaeroxe
Copy link
Member

Xaeroxe commented Aug 4, 2017

@torkleyy https://serde.rs/attr-default.html Woops, it doesn't seem to like specifying default literals like that.

@Xaeroxe
Copy link
Member

Xaeroxe commented Aug 4, 2017

@torkleyy While we wait for the default_value suggestion to land, how do you feel about the commit I made just now?

@Xaeroxe
Copy link
Member

Xaeroxe commented Aug 4, 2017

And now we have another problem :/

@Xaeroxe
Copy link
Member

Xaeroxe commented Aug 4, 2017

Ah. serde_derive doesn't work without serde.

@vitvakatu
Copy link
Contributor

@Xaeroxe stable travis passed, neat

@torkleyy
Copy link
Member Author

torkleyy commented Aug 4, 2017

Yeah, we can use it for now.

@torkleyy
Copy link
Member Author

torkleyy commented Aug 4, 2017

But examples won't work right now.

@Xaeroxe
Copy link
Member

Xaeroxe commented Aug 4, 2017

@torkleyy mind if I fix them?

@Xaeroxe
Copy link
Member

Xaeroxe commented Aug 4, 2017

@torkleyy torkleyy#1 Merge if you please

Copy link
Member

@Xaeroxe Xaeroxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Ready to merge as far as I'm concerned.

@torkleyy torkleyy added project: config type: feature A request for a new feature. labels Aug 6, 2017
@Xaeroxe Xaeroxe merged commit a662404 into amethyst:develop Aug 6, 2017
@torkleyy torkleyy deleted the ron branch August 6, 2017 19:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature A request for a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants