-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
54 lines (46 loc) · 1.06 KB
/
types.ts
File metadata and controls
54 lines (46 loc) · 1.06 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
export interface CargoPackage {
id: string;
name: string;
version: string;
license?: string | null;
description?: string | null;
repository?: string | null;
documentation?: string | null;
homepage?: string | null;
authors?: string[] | null;
readme?: string | null;
manifest_path: string;
targets: {
crate_types: string[];
name: string;
}[];
}
export interface CargoMetadata {
packages: CargoPackage[];
workspace_members: string[];
}
export interface CargoTomlManifest {
profile?: Record<string, { 'opt-level'?: string }>;
}
export interface BuildInput {
targetName: string;
optLevel: string;
}
export interface BuildOutput {
inputFile: string;
outputFile: string;
checksumFile: string;
checksumHash: string;
readmeFile: string;
changelogFile: string;
changelogEntry?: string;
}
export interface BuildablePackage {
root: string;
package: CargoPackage;
input?: BuildInput;
output?: BuildOutput;
}
export type PluginType = 'tool' | 'toolchain' | 'extension' | 'backend';
export type PluginFormat = 'wasm';
export type PluginRuntime = 'moon' | 'proto';