libs
Batteries included: 36 libraries in pure Ridgun, from JSON, HTTP and crypto to regex, tensors and AI agents
| 1 | -- build.rg — Ridgun Library Project Definition |
| 2 | |
| 3 | fn :: project name => String |
| 4 | project name = "ridgun-libs" |
| 5 | |
| 6 | fn :: project kind => String |
| 7 | project kind = "lib" |
| 8 | |
| 9 | fn :: project version => String |
| 10 | project version = "0.1.0" |
| 11 | |
| 12 | fn :: main entry => String |
| 13 | main entry = "src/main/ridgun/lib/socket.rg" |
| 14 | |
| 15 | fn :: source dir => String |
| 16 | source dir = "src/main/ridgun" |
| 17 | |
| 18 | fn :: test dir => String |
| 19 | test dir = "src/test/ridgun" |
| 20 | |
| 21 | fn :: target dir => String |
| 22 | target dir = "target" |
| 23 | |
| 24 | fn :: dependencies => [String] |
| 25 | dependencies = [] |
| 26 | |
| 27 | fn :: strict mode => Bool |
| 28 | strict mode = True |
| 29 | |
| 30 | fn :: task check strict => String |
| 31 | task check strict = "for m in socket argon2id crypto posix io str test math list codec cli path time log glob uuid http agent pool net_agent tensor fmt json csv ini regex btree jwt ws linalg diff template ai locale tls mail; do ridgunc check --strict src/main/ridgun/lib/$m.rg; done" |
| 32 | |
| 33 | fn :: task bundle => String |
| 34 | task bundle = "mkdir -p target target/bundles build && rm -f target/socket.rglib target/argon2id.rglib target/crypto.rglib target/posix.rglib target/io.rglib target/str.rglib target/test.rglib target/math.rglib target/list.rglib target/codec.rglib target/cli.rglib target/path.rglib target/time.rglib target/log.rglib target/glob.rglib target/uuid.rglib target/http.rglib target/agent.rglib target/pool.rglib target/net_agent.rglib target/tensor.rglib target/fmt.rglib target/json.rglib target/csv.rglib target/ini.rglib target/regex.rglib target/btree.rglib target/jwt.rglib target/ws.rglib target/linalg.rglib target/diff.rglib target/template.rglib target/ai.rglib target/locale.rglib target/tls.rglib target/mail.rglib && for m in socket argon2id crypto posix io str test math list codec cli path time log glob uuid http agent pool net_agent tensor fmt json csv ini regex btree jwt ws linalg diff template ai locale tls mail; do ridgunc check --strict src/main/ridgun/lib/$m.rg && cp src/main/ridgun/lib/$m.rg target/bundles/$m.rglib && cp target/bundles/$m.rglib target/$m.rgc && cp target/bundles/$m.rglib build/$m.rglib && ridgunc build --strict --so src/main/ridgun/lib/$m.rg -o target/lib$m.so; done" |