-
% mkdir addon_demo
-
% cd addon_demo
-
npm init neon addon_demo
-
此时的目录内容如下:
addon_demo/ ├── Cargo.toml ├── README.md ├── package.json └── src └── lib.rs
-
npm install
-
执行
% node Welcome to Node.js v14.16.0. Type ".help" for more information. > const demo = require('.') > demo.hello() 'hello node'
使用neon构建Nodejs的Rust addon简单示例
最新推荐文章于 2024-09-07 14:52:28 发布