Skip to content

Commit 2dcbe5e

Browse files
committed
rmsqlite
1 parent c7c81b0 commit 2dcbe5e

11 files changed

Lines changed: 46 additions & 750 deletions

File tree

pkgs/roc/platforms/rust-minimal-cli/Cargo.lock

Lines changed: 0 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/roc/platforms/rust-minimal-cli/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ members = [
1010
"crates/roc_io_error",
1111
"crates/roc_stdio",
1212
"crates/roc_env",
13-
"crates/roc_sqlite",
1413
]
1514

1615
[workspace.package]
@@ -37,7 +36,6 @@ roc_http = { path = "crates/roc_http" }
3736
roc_io_error = { path = "crates/roc_io_error" }
3837
roc_stdio = { path = "crates/roc_stdio" }
3938
roc_env = { path = "crates/roc_env" }
40-
roc_sqlite = { path = "crates/roc_sqlite" }
4139
memchr = "=2.7.4"
4240
hyper = { version = "=1.6.0", default-features = false, features = [
4341
"http1",
@@ -59,5 +57,4 @@ crossterm = "=0.29.0"
5957
memmap2 = "=0.9.4"
6058
libc = "=0.2.172"
6159
backtrace = "=0.3.75"
62-
libsqlite3-sys = { version = "=0.33.0", features = ["bundled"] }
6360
thread_local = "=1.1.8"
32 Bytes
Binary file not shown.

pkgs/roc/platforms/rust-minimal-cli/crates/README.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

pkgs/roc/platforms/rust-minimal-cli/crates/roc_host/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ roc_io_error.workspace = true
2727
roc_http.workspace = true
2828
roc_stdio.workspace = true
2929
roc_env.workspace = true
30-
roc_sqlite.workspace = true
3130
hyper.workspace = true
3231
hyper-rustls.workspace = true
3332
tokio.workspace = true
3433
bytes.workspace = true
3534
http-body-util.workspace = true
36-
hyper-util.workspace = true
35+
hyper-util.workspace = true

pkgs/roc/platforms/rust-minimal-cli/crates/roc_host/build.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@ fn main() {
33
// The path to the platform directory within the workspace
44
// where the libapp.so file is generated by the build.roc script
55
let platform_path = workspace_dir().join("platform");
6-
76
println!("cargo:rustc-link-search={}", platform_path.display());
8-
97
#[cfg(not(windows))]
108
println!("cargo:rustc-link-lib=dylib=app");
11-
129
#[cfg(windows)]
1310
println!("cargo:rustc-link-lib=dylib=libapp");
1411
}
15-
16-
/// Gets the path to the workspace root.
1712
fn workspace_dir() -> std::path::PathBuf {
1813
let output = std::process::Command::new(env!("CARGO"))
1914
.arg("locate-project")

pkgs/roc/platforms/rust-minimal-cli/crates/roc_host/src/lib.rs

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ pub unsafe extern "C" fn roc_dealloc(c_ptr: *mut c_void, _alignment: u32) {
3939
heap.dealloc(c_ptr);
4040
return;
4141
}
42-
let heap = roc_sqlite::heap();
43-
if heap.in_range(c_ptr) {
44-
heap.dealloc(c_ptr);
45-
return;
46-
}
4742
libc::free(c_ptr)
4843
}
4944
#[no_mangle]
@@ -267,12 +262,6 @@ pub fn init() {
267262
roc_fx_temp_dir as _,
268263
roc_fx_get_locale as _,
269264
roc_fx_get_locales as _,
270-
roc_fx_sqlite_bind as _,
271-
roc_fx_sqlite_column_value as _,
272-
roc_fx_sqlite_columns as _,
273-
roc_fx_sqlite_prepare as _,
274-
roc_fx_sqlite_reset as _,
275-
roc_fx_sqlite_step as _,
276265
];
277266
#[allow(forgetting_references)]
278267
std::mem::forget(std::hint::black_box(funcs));
@@ -653,38 +642,3 @@ pub extern "C" fn roc_fx_get_locale() -> RocResult<RocStr, ()> {
653642
pub extern "C" fn roc_fx_get_locales() -> RocList<RocStr> {
654643
roc_env::get_locales()
655644
}
656-
#[no_mangle]
657-
pub extern "C" fn roc_fx_sqlite_bind(
658-
stmt: RocBox<()>,
659-
bindings: &RocList<roc_sqlite::SqliteBindings>,
660-
) -> RocResult<(), roc_sqlite::SqliteError> {
661-
roc_sqlite::bind(stmt, bindings)
662-
}
663-
#[no_mangle]
664-
pub extern "C" fn roc_fx_sqlite_prepare(
665-
db_path: &roc_std::RocStr,
666-
query: &roc_std::RocStr,
667-
) -> roc_std::RocResult<RocBox<()>, roc_sqlite::SqliteError> {
668-
roc_sqlite::prepare(db_path, query)
669-
}
670-
#[no_mangle]
671-
pub extern "C" fn roc_fx_sqlite_columns(stmt: RocBox<()>) -> RocList<RocStr> {
672-
roc_sqlite::columns(stmt)
673-
}
674-
#[no_mangle]
675-
pub extern "C" fn roc_fx_sqlite_column_value(
676-
stmt: RocBox<()>,
677-
i: u64,
678-
) -> RocResult<roc_sqlite::SqliteValue, roc_sqlite::SqliteError> {
679-
roc_sqlite::column_value(stmt, i)
680-
}
681-
#[no_mangle]
682-
pub extern "C" fn roc_fx_sqlite_step(
683-
stmt: RocBox<()>,
684-
) -> RocResult<roc_sqlite::SqliteState, roc_sqlite::SqliteError> {
685-
roc_sqlite::step(stmt)
686-
}
687-
#[no_mangle]
688-
pub extern "C" fn roc_fx_sqlite_reset(stmt: RocBox<()>) -> RocResult<(), roc_sqlite::SqliteError> {
689-
roc_sqlite::reset(stmt)
690-
}

pkgs/roc/platforms/rust-minimal-cli/crates/roc_sqlite/Cargo.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)