virtual-machine 0.0.3 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{chunk-GZ343GYI.mjs → chunk-MELUIZWO.mjs} +6 -104
- package/build/cli.js +591 -709
- package/build/index.d.ts +2 -11
- package/build/index.js +9 -107
- package/build/index.mjs +4 -4
- package/build/{riscv_vm-3CIEJ5K7.mjs → riscv_vm-JTPPWIT3.mjs} +1 -1
- package/package.json +12 -5
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +0 -1
- package/Cargo.toml +0 -49
- package/build/chunk-LJUNPJTY.mjs +0 -670
- package/build/chunk-Q7TFYQ5G.mjs +0 -670
- package/build/riscv_vm-MHIWEZQY.mjs +0 -12
- package/build/riscv_vm-VNML57ES.mjs +0 -12
- package/build.sh +0 -25
- package/cli.ts +0 -268
- package/index.ts +0 -16
- package/src/bus.rs +0 -558
- package/src/clint.rs +0 -132
- package/src/console.rs +0 -83
- package/src/cpu.rs +0 -1913
- package/src/csr.rs +0 -67
- package/src/decoder.rs +0 -789
- package/src/dram.rs +0 -146
- package/src/emulator.rs +0 -603
- package/src/lib.rs +0 -270
- package/src/main.rs +0 -373
- package/src/mmu.rs +0 -331
- package/src/net.rs +0 -121
- package/src/net_tap.rs +0 -164
- package/src/net_webtransport.rs +0 -446
- package/src/net_ws.rs +0 -396
- package/src/plic.rs +0 -261
- package/src/uart.rs +0 -233
- package/src/virtio.rs +0 -1074
- package/tsconfig.json +0 -19
- package/tsup/index.ts +0 -79
- package/tsup/tsup.cli.ts +0 -8
- package/tsup/tsup.core.cjs.ts +0 -7
- package/tsup/tsup.core.esm.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtual-machine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bin": "build/cli.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,20 +9,27 @@
|
|
|
9
9
|
"main": "./build/index.js",
|
|
10
10
|
"module": "./build/index.mjs",
|
|
11
11
|
"types": "./build/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"build"
|
|
14
|
+
],
|
|
12
15
|
"scripts": {
|
|
13
16
|
"build": "rm -rf build && sh build.sh"
|
|
14
17
|
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/elribonazo/riscv-vm"
|
|
21
|
+
},
|
|
15
22
|
"author": "elribonazo@gmail.com",
|
|
16
23
|
"license": "ISC",
|
|
17
24
|
"dependencies": {
|
|
18
|
-
"@trust0/ridb-build": "^0.0.21",
|
|
19
|
-
"tsup": "^8.4.0",
|
|
20
|
-
"typescript": "^5.8.3",
|
|
21
25
|
"yargs": "^18.0.0"
|
|
22
26
|
},
|
|
23
27
|
"packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54",
|
|
24
28
|
"devDependencies": {
|
|
25
29
|
"@esbuild-plugins/node-resolve": "^0.2.2",
|
|
26
|
-
"@
|
|
30
|
+
"@trust0/ridb-build": "^0.0.21",
|
|
31
|
+
"@types/node": "^24.10.1",
|
|
32
|
+
"tsup": "^8.4.0",
|
|
33
|
+
"typescript": "^5.8.3"
|
|
27
34
|
}
|
|
28
35
|
}
|
package/.yarn/install-state.gz
DELETED
|
Binary file
|
package/.yarnrc.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodeLinker: node-modules
|
package/Cargo.toml
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
name = "riscv-vm"
|
|
3
|
-
version = "0.0.2"
|
|
4
|
-
edition = "2024"
|
|
5
|
-
|
|
6
|
-
[lib]
|
|
7
|
-
crate-type = ["cdylib", "rlib"]
|
|
8
|
-
|
|
9
|
-
[dependencies]
|
|
10
|
-
log = "0.4"
|
|
11
|
-
thiserror = "1.0"
|
|
12
|
-
hex = "0.4"
|
|
13
|
-
env_logger = "0.10"
|
|
14
|
-
clap = { version = "4.4", features = ["derive"] }
|
|
15
|
-
libc = "0.2"
|
|
16
|
-
goblin = "0.8"
|
|
17
|
-
serde = { version = "1.0", features = ["derive"] }
|
|
18
|
-
bincode = "1.3"
|
|
19
|
-
sha2 = "0.10"
|
|
20
|
-
wasm-bindgen = "0.2"
|
|
21
|
-
|
|
22
|
-
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
23
|
-
tun-tap = "0.1"
|
|
24
|
-
reqwest = { version = "0.12", features = ["blocking", "rustls-tls"] }
|
|
25
|
-
tungstenite = "0.21"
|
|
26
|
-
# WebTransport for connecting to the relay
|
|
27
|
-
wtransport = { version = "0.6", features = ["dangerous-configuration"] }
|
|
28
|
-
tokio = { version = "1", features = ["full"] }
|
|
29
|
-
futures = "0.3"
|
|
30
|
-
|
|
31
|
-
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
32
|
-
console_error_panic_hook = "0.1"
|
|
33
|
-
web-sys = { version = "0.3", features = [
|
|
34
|
-
"WebSocket",
|
|
35
|
-
"MessageEvent",
|
|
36
|
-
"BinaryType",
|
|
37
|
-
"ErrorEvent",
|
|
38
|
-
"CloseEvent",
|
|
39
|
-
"WebTransport",
|
|
40
|
-
"WebTransportOptions",
|
|
41
|
-
"WebTransportHash",
|
|
42
|
-
"WebTransportDatagramDuplexStream",
|
|
43
|
-
"ReadableStream",
|
|
44
|
-
"WritableStream",
|
|
45
|
-
"ReadableStreamDefaultReader",
|
|
46
|
-
"WritableStreamDefaultWriter"
|
|
47
|
-
] }
|
|
48
|
-
js-sys = "0.3"
|
|
49
|
-
wasm-bindgen-futures = "0.4"
|