gnrt_config.toml を構成する

Cargo.toml のほかに、gnrt_config.toml があります。これには、クレートを扱うための Chromium 固有の拡張機能が含まれています。

新しいクレートを追加する場合は、少なくとも次のいずれかの group を指定する必要があります。

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

次に例を示します。

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

クレートのソースコードのレイアウトによっては、このファイルを使用して LICENSE ファイルを見つける場所も指定する必要があります。

後ほど、いくつかの問題を解決するためにこのファイルに指定する必要がある設定について取り扱います。