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

Make Cargo.toml compatible with TOML spec #186

Merged
merged 1 commit into from Apr 17, 2016
Merged

Conversation

@zofrex
Copy link
Contributor

zofrex commented Apr 17, 2016

Hello!

I think the Cargo.toml for this crate may not be strictly compliant with the TOML specification - I'm not certain, but it's blowing up in pytoml and my reading of the spec sides with pytoml.

The relevant part of the Cargo.toml file:

[[test]] name = "format"

And the TOML spec on tables:

They appear in square brackets on a line by themselves

So I think pytoml is right to object here, but I'm fairly new to TOML so please let me know if I'm mis-interpreting and I'll go fix pytoml instead :)

The incompatibility with pytoml is an issue if you are using cargo-bootstrap, and I've tested that my proposed fix here fixes dhuseby/cargo-bootstrap#13


This change is Reviewable

@frewsxcv
Copy link
Member

frewsxcv commented Apr 17, 2016

Thanks!

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Apr 17, 2016

📌 Commit e362e13 has been approved by frewsxcv

@bors-servo
Copy link
Contributor

bors-servo commented Apr 17, 2016

Testing commit e362e13 with merge be00f8f...

bors-servo added a commit that referenced this pull request Apr 17, 2016
Make Cargo.toml compatible with TOML spec

Hello!

I think the Cargo.toml for this crate may not be strictly compliant with the TOML specification - I'm not certain, but it's blowing up in pytoml and my reading of the spec sides with pytoml.

The relevant part of the Cargo.toml file:

```
[[test]] name = "format"
```

And the [TOML spec on tables](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md#table):

> They appear in square brackets on a line by themselves

So I think pytoml is right to object here, but I'm fairly new to TOML so please let me know if I'm mis-interpreting and I'll go fix pytoml instead :)

The incompatibility with pytoml is an issue if you are using cargo-bootstrap, and I've tested that my proposed fix here fixes dhuseby/cargo-bootstrap#13

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/186)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Apr 17, 2016

☀️ Test successful - travis

@bors-servo bors-servo merged commit e362e13 into servo:master Apr 17, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.