
    ea	                    N    d dl mZ d dlZd dlmZ dZdZdZdZ	dZ
 G d	 d
e      Zy)    )annotationsN)FileImplz#![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();
}}
zmextern crate {crate_file};

fn main() {{
    println!("printing: {{}}", {crate_file}::{function_name}());
}}
a  project('{project_name}', 'rust',
  version : '{version}',
  default_options : ['warning_level=3'])

shlib = static_library('{lib_name}', '{source_file}', install : true)

test_exe = executable('{test_exe_name}', '{test_source_file}',
  link_with : shlib)
test('{test_name}', test_exe)

# Make this library usable as a Meson subproject.
{ltoken}_dep = declare_dependency(
  include_directories: include_directories('.'),
  link_with : shlib)
zq
fn main() {{
    let project_name = "{project_name}";
    println!("This is project {{}}.\n", project_name);
}}
zproject('{project_name}', 'rust',
  version : '{version}',
  default_options : ['warning_level=3'])

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

test('basic', exe)
c                  8     e Zd ZdZeZeZeZ	e
ZeZd fdZ xZS )RustProjectrsc                B    t         |          }| j                  |d<   |S )N
crate_file)super
lib_kwargslowercase_token)selfkwargs	__class__s     D/usr/lib/python3/dist-packages/mesonbuild/templates/rusttemplates.pyr   zRustProject.lib_kwargsV   s%    #%#33|    )returnzT.Dict[str, str])__name__
__module____qualname__
source_exthello_rust_templateexe_templatehello_rust_meson_templateexe_meson_templatelib_rust_templatelib_templatelib_rust_test_templatelib_test_templatelib_rust_meson_templatelib_meson_templater   __classcell__)r   s   @r   r   r   M   s.    J&L2$L.0 r   r   )
__future__r   typingTmesonbuild.templates.sampleimplr   r   r   r   r   r   r    r   r   <module>r'      sD    #  4      ( r   