dart-sys-fork 4.1.1

Statically generated, Opt-in style bindings to the Dart SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{env, path::PathBuf};
fn main() {
	cc::Build::new()
		.file(
			PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap())
				.join("dart-sdk")
				.join("include")
				.join("dart_api_dl.c"),
		)
		.include(
			PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap())
				.join("dart-sdk")
				.join("include"),
		)
		.compile("dart_api_dl");
}