File: legacy.rs

package info (click to toggle)
rust-caps 0.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
use caps::runtime;

fn main() {
    let amb_set = runtime::ambient_set_supported().is_ok();
    println!("Ambient set supported: {}", amb_set);

    let all = caps::all();
    let supported = runtime::thread_all_supported();
    let missing = all.difference(&supported);
    println!("Unsupported new capabilities: {:?}", missing);
}