Configuring gnrt_config.toml

Alongside Cargo.toml is gnrt_config.toml. This contains Chromium-specific extensions to crate handling.

If you add a new crate, you should specify at least the group. This is one of:

  1. # 'safe': The library satisfies the rule-of-2 and can be used in any process.
  2. # 'sandbox': The library does not satisfy the rule-of-2 and must be used in
  3. # a sandboxed process such as the renderer or a utility process.
  4. # 'test': The library is only used in tests.

For instance,

  1. [crate.my-new-crate]
  2. group = 'test' # only used in test code

Depending on the crate source code layout, you may also need to use this file to specify where its LICENSE file(s) can be found.

Later, we’ll see some other things you will need to configure in this file to resolve problems.