Clarify where to put cc dependency for build script. (#586)
This commit is contained in:
parent
f453178ca2
commit
bc0d53d4f0
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ fn main() {
|
|||
}
|
||||
```
|
||||
|
||||
Add the `cc` crate to your `Cargo.toml` under `[build-dependencies]`:
|
||||
```toml
|
||||
[build-dependencies]
|
||||
cc="*"
|
||||
```
|
||||
|
||||
To then use languages from rust, you must declare them as `extern "C"` functions and invoke them with `unsafe`. Then you can assign them to the parser.
|
||||
|
||||
```rust
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue