File: ADDING_NEW_PLATFORMS.md

package info (click to toggle)
rust-sysinfo 0.30.13-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,468 kB
  • sloc: ansic: 148; makefile: 27
file content (8 lines) | stat: -rw-r--r-- 144 bytes parent folder | download | duplicates (33)
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>`.