tree: 04424107ef4ed922d1fdfb03a5314a17425f9aac [path history] [tgz]
  1. add_deprecated_syntax.py
  2. copy_converted_files_from_output.sh
  3. fidl_converter.py
  4. find_nullable_union_fields.py
  5. fix_rust_exhaustive_tables.rs
  6. fix_rust_exhaustive_tables.sh
  7. format_unions.py
  8. README.md
  9. syntax_coverage_check.py
tools/fidl/scripts/README.md

FIDL scripts

This directory contains scripts used by FIDL contributors. When writing a script, consider saving it here if there is any chance it could be reused, including being used as a reference for future scripts. All scripts must be documented in this file.

find_nullable_union_fields.py

This script analyzes all .fidl files in the fuchsia repository and reports occurrences of nullable fields in unions.

fix_rust_exhaustive_tables.sh

This script (1) changes FIDL table initializers to use the functional update syntax MyTable { /* ... */, ..MyTable::empty() }, and (2) changes patterns to use MyTable { /* ... */, .. }. It does this by parsing build errors with awk and then processing them with a Rust program executed using rust-script.