Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 666 Bytes

File metadata and controls

23 lines (15 loc) · 666 Bytes

Conditional Compiling

In order to support generating offline configuration on MacOS, we introduced conditional compiling since nmstate 2.2.0.

By default, nmstate is compiled with all features enabled:

  • query_apply -- For querying and applying network state, only for linux platform

  • gen_conf -- For generating offline configurations. Both Linux and MacOS are supported.

To compile only the gen_conf feature:

cd rust && cargo build --no-default-features --features gen_conf

You may also download pre-compiled nmstatectl binary at Nmstate release page.