summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/rust.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-11-20 14:42:29 +0100
committerDylan Baker <dylan@pnwbakers.com>2025-04-02 08:44:37 -0700
commit54118b6fbf5a508ee57d940d672ad2654a1cdf2c (patch)
tree656113a54ead2e0d2e2eb591d1d2ed131a9e2512 /mesonbuild/modules/rust.py
parentb13cd1051685d835179ad1396cbbeaba1fec4f96 (diff)
downloadmeson-54118b6fbf5a508ee57d940d672ad2654a1cdf2c.tar.gz
ninjabackend: generate command line for rust doctests
Adjust get_rust_compiler_args() to accept the crate-type externally, because rustdoc tests are an executable but are compiled with the parent target's --crate-type. Apart from that, the rustdoc arguments are very similar to the parent target, and are handled by the same functions that were split out of generate_rust_target. This concludes the backend implementation of doctests, only leaving the implementation of a doctest() function in the rust module. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/modules/rust.py')
0 files changed, 0 insertions, 0 deletions