File: ADDING_NEW_PLATFORMS.md

package info (click to toggle)
rust-sysinfo 0.37.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,264 kB
  • sloc: ansic: 158; makefile: 27
file content (8 lines) | stat: -rw-r--r-- 144 bytes parent folder | download | duplicates (31)
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>`.