-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sqlean Time extension #854
Changes from 7 commits
643ad14
65b4361
e1733ca
3095910
7b801f3
9acba9c
26f24f9
a4251e0
733f7de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[package] | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
name = "limbo_time" | ||
repository.workspace = true | ||
version.workspace = true | ||
|
||
[lib] | ||
crate-type = ["cdylib", "lib"] | ||
|
||
[features] | ||
static = ["limbo_ext/static"] | ||
|
||
[dependencies] | ||
chrono = "0.4.39" | ||
limbo_ext = { path = "../core", features = ["static"] } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In order for the extensions to work when loaded at runtime(without "static"), we need to add the following [target.'cfg(not(target_family = "wasm"))'.dependencies]
mimalloc = { version = "*", default-features = false } There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I read it a couple of days ago in the extension core readme, but totally forgot to add it here. |
||
strum = "0.26.3" | ||
strum_macros = "0.26.3" | ||
thiserror = "2.0.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably move this to the
test-extensions
, intesting/extensions.py
Depending on whether or not @penberg wants this included in the default features, you would want to make sure it's building first so add it to this line:
test-extensions: limbo cargo build --package limbo_regexp --package limbo_time
you can add a function there that (optionally) loads it first.
EDIT: nvm I looked at how much it's actually testing, and rewriting all those in python certainly isn't necessary. So it just depends on whether it needs to be loaded first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one thing, I was a bit uncertain on how to do properly. I really wanted to test using tcl like we do with other tests, but to do so it had to be bundled together with limbo. So I added it to default, so I could just
make limbo
and then open the cli and test my changes. Maybe we could have another make command to bundle particular extensions together?