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

Improve build.rs and some more. #220

Merged
merged 6 commits into from
Apr 30, 2021
Merged

Improve build.rs and some more. #220

merged 6 commits into from
Apr 30, 2021

Conversation

Sh3Rm4n
Copy link
Member

@Sh3Rm4n Sh3Rm4n commented Apr 29, 2021

I had some ideas about the newly added build.rs and touched some documentation as well.

What do you think about this change, @Piroro-hs?

@Sh3Rm4n Sh3Rm4n force-pushed the memory_x branch 3 times, most recently from d6667de to 10c4e9f Compare April 29, 2021 16:53
Copy link
Contributor

@Piroro-hs Piroro-hs left a comment

Choose a reason for hiding this comment

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

Ensuring user select exactly one device is great I think :)

build.rs Outdated Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
@Piroro-hs
Copy link
Contributor

How about changing those eprintln!s like this?

    eprintln!(
        "I've just found Rust's string literal support line breaking.\n\
        \n\
        We can keep indentation!!!."
    );

@Sh3Rm4n
Copy link
Member Author

Sh3Rm4n commented Apr 30, 2021

Oh, I've searched for a variation to keep the indentation as well. 😄 Thanks for the tip 👍

@Sh3Rm4n Sh3Rm4n force-pushed the memory_x branch 3 times, most recently from 058f89d to f59b652 Compare April 30, 2021 09:40
Copy link
Contributor

@Piroro-hs Piroro-hs left a comment

Choose a reason for hiding this comment

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

Found some typo

build.rs Outdated Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
Sh3Rm4n and others added 6 commits April 30, 2021 15:40
As we are now using build.rs to check the feature selection,
we can now make more sophisticated checks.

Therefor we use build.rs to compare the selected features
and the features in the Cargo.toml (via cargo_metadata),
and verify, that only a single valid device feature is selected.
And additional documentation improvments
Co-authored-by: Piroro-hs <Piroro-hs@users.noreply.github.com>
@Sh3Rm4n
Copy link
Member Author

Sh3Rm4n commented Apr 30, 2021

Thanks for your review @Piroro-hs

@Sh3Rm4n Sh3Rm4n merged commit 7a12c20 into stm32-rs:master Apr 30, 2021
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

Successfully merging this pull request may close these issues.

2 participants