Skip to content

Commit

Permalink
The TOML spec has been updated to allow literal strings
Browse files Browse the repository at this point in the history
Note is now removed
  • Loading branch information
alexcrichton committed Jan 23, 2016
1 parent 65ea671 commit 60e6d04
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions text/0000-cargo-cfg-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ winapi = "0.2"
[target."cfg(unix)".dependencies]
unix-socket = "0.4"

[target."cfg(target_os = \"macos\")".dependencies]
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.2"
```

Expand All @@ -52,16 +52,6 @@ the string "cfg(" and ends with ")". If this is not true then Cargo will
continue to treat it as an opaque string and pass it to the compiler via
`--target` (Cargo's current behavior).

> **Note**: There's an [issue open against TOML][toml-issue] to support
> single-quoted keys allowing more ergonomic syntax in some cases like:
>
> ```toml
> [target.'cfg(target_os = "macos")'.dependencies]
> core-foundation = "0.2"
> ```
[toml-issue]: https://github.com/toml-lang/toml/issues/354
Cargo will implement its own parser of this syntax inside the `cfg` expression,
it will not rely on the compiler itself. The grammar, however, will be the same
as the compiler for now:
Expand Down

0 comments on commit 60e6d04

Please sign in to comment.