summaryrefslogtreecommitdiffstats
path: root/vendor/sysinfo/ADDING_NEW_PLATFORMS.md
blob: 4d9330a0747ad67bf16b7dcb1e532ce71903e313 (plain)
1
2
3
4
5
6
7
8
To get the `target_os` etc:
```
rustc --print cfg
```

In `src/lib.rs` add the matching based on the `cfg` data.

Create `src/<new_platform>`.