feat: add cJSON and SQLite amalgamation source files under deps/

Add the cJSON library (cJSON.c, cJSON.h) and SQLite amalgamation
(sqlite3.c, sqlite3.h, sqlite3ext.h, shell.c) as vendored dependencies
in the deps/ directory for use by the project build system.
This commit is contained in:
2026-01-24 18:35:43 +00:00
parent 8f1d13a86b
commit fdd61cc90c
118 changed files with 315687 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
// retoor <retoor@molodetz.nl>
import "crypto" for Crypto, Hash
var bytes = Crypto.randomBytes(16)
System.print(bytes is List) // expect: true
System.print(bytes.count) // expect: 16
var md5 = Hash.md5("hello")
System.print(Hash.toHex(md5)) // expect: 5d41402abc4b2a76b9719d911017c592
var sha1 = Hash.sha1("hello")
System.print(Hash.toHex(sha1)) // expect: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
var sha256 = Hash.sha256("hello")
System.print(Hash.toHex(sha256)) // expect: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
var emptyMd5 = Hash.md5("")
System.print(Hash.toHex(emptyMd5)) // expect: d41d8cd98f00b204e9800998ecf8427e