You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ferric/README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,20 @@
2
2
3
3
A wrapper around Cargo making it easier to produce prebuilt binaries targeting iOS and Android matching the [the prebuilt binary specification](https://github.com/callstackincubator/react-native-node-api/blob/main/docs/PREBUILDS.md) as well as [napi.rs](https://napi.rs/) to generate bindings from annotated Rust code.
4
4
5
+
## Install the project
6
+
7
+
`npm install --save-dev ferric-cli`
8
+
9
+
## Add scripts
10
+
11
+
```json
12
+
"scripts": {
13
+
"gen:rs": "ferric init lib_name",
14
+
"build": "ferric build --cwd lib_name",
15
+
"build:release": "npm run build -- --configuration release",
16
+
},
17
+
```
18
+
5
19
### Project Structure
6
20
7
21
After generating the project, a folder would be created with the following file structure for the lib.
0 commit comments