Replies: 6 comments 6 replies
-
|
update - I now know how to set the stack size at compile time using RUSTFLAGS, but it needs to be set in the cargo config.toml file. Working on that |
Beta Was this translation helpful? Give feedback.
-
|
I'm very supportive of having windows builds, I just haven't gotten around to it. Your effort is greatly appreciated. One requirement would be that it can build in a GitHub workflow, See https://github.com/trailbaseio/trailbase/blob/main/.github/workflows/release.yml, for the Mac and Linux builds.
Sorry, that's a known issue. It should pick up the headers from the bundles sqlite to ensure consistency (though sqlite's APIs are incredibly stable). I didn't point it at sqlite-loadable because I am still considering to get rid of sqlite-loadable. I was also considering to remove sqlean entirely. Not sure how strong folks feel about stored procedures at this point. Either way, the correct crate would be https://crates.io/crates/libsqlite3-sys.
The stack size is fundamentally a runtime property: https://www.man7.org/linux/man-pages/man3/pthread_attr_setstacksize.3.html. When setting compiler flags you might only be able to override the default.
cargo reads the stdout of build.rs and is looking for commands like Note that missing directories will always trigger a rebuild. |
Beta Was this translation helpful? Give feedback.
-
I can't really speak to Window's way of discovering includes but the workaround I had added was due to a broken "libprotobuf-dev" debian package at the time. Don't remember the details, presumably the pkgconf definition was incorrect. Either way, removed it now. I would expect that windows has a similar mechanism. If it doesn't build could it be:
We can always add another workaround but would be helpful to understand what an idiomatic solution would look like. |
Beta Was this translation helpful? Give feedback.
-
|
windows needs a larger stack need a .cargo/config.toml with I can do a PR |
Beta Was this translation helpful? Give feedback.
-
sqlite-loadable has since been removed and sqlean includes the headers from the bundled sqlite3 from libsqlite3-sys. |
Beta Was this translation helpful? Give feedback.
-
|
The latest release v0.3.3 includes a windows prebuilt binary serving serving both as an easy default as well as the workflow as a reference for building on windows. Was pleasantly surprised by how far windows dep management has gotten |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
after much work I have got a windows version running. Many issues were found, some nothing to do with windows
.include("../sqlite-loadable/sqlite3ext-sys/sqlite3")to point cc at the headers included in the github dirs.
Windows specific
change
let includes = vec![PathBuf::from("/usr/include"), PathBuf::from(PROTO_PATH)];to
But now it runs ok - woo hoo.
I need to track down why any minor tweak to anything causes a rebuild of all 700+ crates. I suspect there is something being emitted by the build.rs files.
Beta Was this translation helpful? Give feedback.
All reactions