+
    UBix	                    |    ^ RI Ht ^ RIt^ RIHt ]P                  '       d   ^RIHt Rt	Rt
RtRt ! R	 R
]4      tR# )    )annotationsN)FileImpl)	Argumentsa  #![crate_name = "{crate_file}"]

/* This function will not be exported and is not
 * directly callable by users of this library.
 */
fn internal_function() -> i32 {{
    return 0;
}}

pub fn {function_name}() -> i32 {{
    return internal_function();
}}

#[cfg(test)]
mod tests {{
    use super::*;

    #[test]
    fn test_function() {{
        assert_eq!({function_name}(), 0);
    }}
}}
at  project(
  '{project_name}',
  'rust',
  version : '{version}',
  meson_version : '>= {meson_version}',
  default_options : ['rust_std=2021', 'warning_level=3'],
)

rust = import('rust')

dependencies = [{dependencies}
]

sources = [{source_files}
]

lib = static_library(
  '{lib_name}',
  sources,
  dependencies : dependencies,
  install : true,
)

rust.test('{test_name}', lib)

# Make this library usable as a Meson subproject.
{ltoken}_dep = declare_dependency(
  include_directories : include_directories('.'),
  dependencies : dependencies,
  link_with : lib,
)
meson.override_dependency('{project_name}', {ltoken}_dep)
zq
fn main() {{
    let project_name = "{project_name}";
    println!("This is project {{}}.\n", project_name);
}}
aX  project(
  '{project_name}',
  'rust',
  version : '{version}',
  meson_version : '>= {meson_version}',
  default_options : ['rust_std=2021', 'warning_level=3'],
)

dependencies = [{dependencies}
]

sources = [{source_files}
]

exe = executable(
  '{exe_name}',
  sources,
  dependencies : dependencies,
  install : true,
)

test('basic', exe)
c                  X   a  ] tR t^jtRt]t]t]	t
Rt]tR V 3R lltR V 3R lltRtV ;t# )RustProjectrsNc                   V ^8  d   QhRR/# )   argsr    )formats   "G/usr/lib/python3.14/site-packages/mesonbuild/templates/rusttemplates.py__annotate__RustProject.__annotate__s   s     % %Y %    c                	4   < \         SV `  V4       R V n        R# )z1.3.0N)super__init__meson_version)selfr   	__class__s   &&r   r   RustProject.__init__s   s    $r   c                   V ^8  d   QhRR/# )r
   returnzT.Dict[str, str]r   )r   s   "r   r   r   w   s      , r   c                	B   < \         SV `  4       pV P                  VR &   V# )
crate_file)r   
lib_kwargslowercase_token)r   kwargsr   s   & r   r   RustProject.lib_kwargsw   s%    #%#33|r   )r   )__name__
__module____qualname____firstlineno__
source_exthello_rust_templateexe_templatehello_rust_meson_templateexe_meson_templatelib_rust_templatelib_templatelib_test_templatelib_rust_meson_templatelib_meson_templater   r   __static_attributes____classcell__)r   s   @r   r   r   j   s8    J&L2$L0% % r   r   )
__future__r   typingTmesonbuild.templates.sampleimplr   TYPE_CHECKINGminitr   r*   r-   r&   r(   r   r   r   r   <module>r7      sI   
 #  4???! 2  D  2( r   