-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
119 lines (104 loc) · 2.71 KB
/
Cargo.toml
File metadata and controls
119 lines (104 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[package]
name = "mind"
version = "0.2.3"
edition = "2021"
rust-version = "1.82"
authors = ["STARGA Inc."]
description = "The native language for intelligent systems"
repository = "https://github.com/star-ga/mind"
homepage = "https://github.com/star-ga/mind"
documentation = "https://github.com/star-ga/mind/tree/main/docs"
readme = "README.md"
license = "Apache-2.0"
default-run = "mind"
keywords = ["ai", "machine-learning", "compiler", "tensor", "autodiff"]
categories = ["compilers", "science"]
exclude = ["assets/", "benchmarks/", "examples/"]
[dependencies]
melior = { version = "0.21", optional = true }
inkwell = { version = "0.8.0", features = ["llvm21-1"], optional = true }
clap = { version = "4.4", features = ["derive"] }
colored = "2.0"
anyhow = "1.0"
thiserror = "1.0"
libloading = { version = "0.8", optional = true }
libc = { version = "0.2", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
which = { version = "6", optional = true }
tempfile = { version = "3", optional = true }
toml = "0.8"
tar = { version = "0.4", optional = true }
flate2 = { version = "1.0", default-features = false, features = ["rust_backend"], optional = true }
sha2 = { version = "0.10", optional = true }
dirs = "5"
pyo3 = { version = "0.22", optional = true, features = ["extension-module"] }
[dev-dependencies]
criterion = "0.5"
proptest = "1.4"
tempfile = "3"
which = "6"
[lib]
name = "libmind"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "mind"
path = "src/main.rs"
[[bin]]
name = "mindc"
path = "src/bin/mindc.rs"
[[bench]]
name = "compiler"
harness = false
[[bench]]
name = "shapes"
harness = false
[[bench]]
name = "operations"
harness = false
[[bench]]
name = "autodiff"
harness = false
required-features = ["autodiff"]
[[bench]]
name = "simple_benchmarks"
harness = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[profile.dev]
opt-level = 0
debug = true
# Reduce codegen units to prevent LNK1318 (too many PDB files) on Windows
codegen-units = 16
split-debuginfo = "packed"
[profile.test]
inherits = "dev"
# Disable debug info for tests to avoid Windows LNK1318 PDB errors
codegen-units = 1
debug = false
[features]
default = []
autodiff = []
cpu-buffers = []
cpu-exec = ["cpu-buffers"]
cpu-conv = ["cpu-exec"]
mlir = []
mlir-lowering = []
mlir_backend = ["melior"]
llvm = ["inkwell"]
mlir-subprocess = ["which"]
mlir-exec = ["mlir-subprocess", "tempfile"]
mlir-jit = ["libloading"]
mlir-gpu = []
mlir-build = ["mlir-subprocess", "tempfile"]
ffi-c = ["libc"]
ffi-examples = []
pkg = ["tar", "flate2", "sha2"]
registry = []
python-bindings = ["pyo3"]
aot = ["mlir-build", "mlir-lowering", "autodiff"]
full = ["aot", "autodiff", "cpu-exec", "cpu-conv", "pkg", "ffi-c"]
[build-dependencies]
cc = "1"