metaworm / luac-parser-rs

lua bytecode parser written in Rust using nom, part of metaworm's lua decompiler, support lua51/lua52/lua53/lua54/luajit/luau https://luadec.metaworm.site/
https://luadec.metaworm.site/
204 stars 28 forks source link

似乎缺少`index.html`无法编译 #4

Closed weituotian closed 1 year ago

weituotian commented 1 year ago

trunk build --release

Error: error getting canonical path to source HTML file "index.html"

在项目根目录创建一个index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>

trunk build --release输出变为:

2023-07-09T08:56:56.375296Z  INFO  starting build
2023-07-09T08:56:56.375990Z  INFO spawning asset pipelines
2023-07-09T08:56:56.696224Z  INFO building luac-parser
    Finished release [optimized] target(s) in 0.03s
2023-07-09T08:56:56.781008Z  INFO fetching cargo artifacts
2023-07-09T08:56:56.868437Z ERROR  error
error from HTML pipeline

Caused by:
    0: error from asset pipeline
    1: cargo artifacts not found for target crate
Error: error from HTML pipeline

Caused by:
    0: error from asset pipeline
    1: cargo artifacts not found for target crate

前置命令

cargo install trunk
rustup toolchain install nightly
rustup default nightly
rustup target add wasm32-unknown-unknown

cargo build --target wasm32-unknown-unknown无错误

metaworm commented 1 year ago

参考 https://github.com/metaworm/openwrt-luac-parser 这个repo的配置