diff options
| author | zhang san <[email protected]> | 2025-12-08 18:34:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-08 18:34:25 +0800 |
| commit | 69980f8b9d29b38dbd4ddf6373b4b45f3a138409 (patch) | |
| tree | 21dd9a8ce80e3d30192e9ffa56ea39a199bae309 /components/rust/tools/feature_config_examples.py | |
| parent | cd1d47b87c5d47e131730e5506eb3ad77d357653 (diff) | |
Adding Rust Language Support for RT-Thread #10910
Diffstat (limited to 'components/rust/tools/feature_config_examples.py')
| -rw-r--r-- | components/rust/tools/feature_config_examples.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/rust/tools/feature_config_examples.py b/components/rust/tools/feature_config_examples.py new file mode 100644 index 0000000000..1e4befa604 --- /dev/null +++ b/components/rust/tools/feature_config_examples.py @@ -0,0 +1,26 @@ +import sys +import os +from building import * +cwd = GetCurrentDir() +sys.path.append(os.path.join(cwd, 'tools')) +from build_usrapp import CONFIG_FEATURE_MAP + +def setup_all_example_features(): + + CONFIG_FEATURE_MAP.update({ + 'RUST_LOG_COMPONENT': { + 'feature': 'enable-log', + 'dependencies': ['em_component_log'], + 'description': 'Enable Rust logging component integration' + }, + }) + + print("All example feature mappings have been configured!") + + +if __name__ == "__main__": + setup_all_example_features() + print(f"Total configurations: {len(CONFIG_FEATURE_MAP)}") + print("Available configurations:") + for config, info in CONFIG_FEATURE_MAP.items(): + print(f" {config}: {info['feature']} - {info['description']}")
\ No newline at end of file |
