diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-12-17 06:45:27 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-12-17 06:45:27 +0000 |
| commit | c63c3e8c8c73ed7c036df7511ca190cdb96d92e2 (patch) | |
| tree | 3262ef318f03388d37ac28493e42c1638c227c27 /meson.build | |
| parent | 0ec856797256b5d9807929e1b32c03756eb43124 (diff) | |
| download | gentoo-utils-split-into-workspace.tar.gz | |
debuggingsplit-into-workspace
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/meson.build b/meson.build index 389720b..291eeb7 100644 --- a/meson.build +++ b/meson.build @@ -7,48 +7,12 @@ project( rustfmt = find_program('rustfmt') -rust = import('rust') fs = import('fs') +rust = import('rust') +cargo = rust.workspace() + sources = [] subdir('src') - -mon = dependency('mon-0.1-rs') -get = dependency('get-0.1-rs') -itertools = dependency('itertools-0.14-rs') -thiserror = subproject('thiserror').get_variable('thiserror') - -gentoo_utils = static_library( - 'gentoo_utils', - 'src/lib.rs', - dependencies: [mon, get, itertools], - link_with: [thiserror], -) - -custom_target( - 'rustfmt', - input: sources, - output: 'rustfmt', - command: [rustfmt, '--edition=2024', '--check', '@INPUT@'], - build_always_stale: true, -) - -if get_option('tests').enabled() - rust.test('unittests', gentoo_utils) - subdir('tests') -endif - -if get_option('fuzz').enabled() - subdir('fuzz') -endif - -if get_option('docs').enabled() - rust.doctest( - 'doctests', - gentoo_utils, - dependencies: [mon, get, itertools], - link_with: [thiserror], - args: ['--nocapture'], - ) -endif +subdir('crates') |
