Commit Graph
24 Commits
Author SHA1 Message Date
Greg Hellings 016986b597 Fix formatting for 0.1.1 2025-06-29 22:36:11 -05:00
Greg Hellings 8efb783ab8 Version 0.1.1 updates
Update the code version to 0.1.1
No actual code changes, just updating pins and other stuff
Updating nix pins and versions
Attempting to fix Gitlab CI
2025-06-29 22:33:35 -05:00
Greg Hellings bcaf170162 Remove unused files 2025-06-29 22:04:56 -05:00
Greg Hellings 56dbbacb12 This eliminates many, but not all, race conditions 2025-06-29 12:53:14 -05:00
Greg Hellings 5b7d736891 Teach versekey to increment 2025-06-29 12:04:03 -05:00
Greg Hellings 4d60a6f73f Make VerseKeys versification aware 2025-06-29 11:01:58 -05:00
Greg Hellings 86ae509dd0 Rust-friendly binding for Versification 2025-06-29 00:22:01 -05:00
Greg Hellings 0ec0a0c7ac Builds, runs, and tests succeed*
*Tests only succeed if you run them in a single-threaded instance. With
cargo this means invoking them as `cargo run -- --test-threads=1`. There
is an instance of global state in the Sword engine with the
VersificationMgr class that can easily cause a race condition. Since
VersificationMgr is intended to be a global singleton, when it is first
being instantiated the pointer is null. Sometimes the tests get into
that method at the same time and overwrite one another with the instance
of the manager, thus causing some of the VerseKeys that get instantiated
to be invalid.

TODO: On the Rust side of the code, create an instance of the
VersificationMgr before allowing any VerseKey objects to be created.
Probably also necessary to run it before allowing SWMgr to be
instantiated, as well, just to be safe.
2025-06-26 02:19:26 -05:00
Greg Hellings c8dd1ce0f0 With a little help, we now have VerseKey
Went with a basic wrapper that cxx is able to handle for the bridge
between the languages, along with simple wrapper methods
2025-06-25 02:30:42 -05:00
Greg Hellings fc7b3a7ec5 Merge branch 'main' of src:greg/sword_rs 2025-06-25 00:50:49 -05:00
Greg Hellings ef56594bad Added some Versification knowledge 2025-06-22 01:39:01 -05:00
Greg Hellings 945823370b Add the ability to read type 2025-02-25 19:49:02 -06:00
Greg Hellings fc904b33b3 Now with skipping consecutive links 2025-02-25 15:45:58 -06:00
Greg Hellings 93b2cb6447 Now with increment and decrement 2025-02-25 15:36:58 -06:00
Greg Hellings 0c7843b386 Now with formatting available 2025-02-25 14:55:39 -06:00
Greg Hellings be7d2873e6 Now with the ability to ask for formtted text 2025-02-25 10:46:07 -06:00
Greg Hellings a2fcfb1724 Fix CI
Hopefully fix the CI running pre-commit
Add a CI build step
Add a CI `cargo test` step
2025-02-25 00:15:04 -06:00
Greg Hellings 2a890a53cb Setting verse key by text
Add the ability to set a very key by text
Make the main.rs iterate random verses in John 3
2025-02-25 00:06:12 -06:00
Greg Hellings 0c3e46497c Better wrapping with Rust
Trying to hide most of the CXX nastiness behind the actual module
Move the CXX ffi stuff to its own module
Separate mgr and module mods
Modify main.rs to use the basic code we have done so far
2025-02-24 23:18:38 -06:00
Greg Hellings 87fde0db10 Fetching modules and their names 2025-02-24 22:35:47 -06:00
Greg Hellings 3e2cd701d0 Able to fetch a list of module names 2025-02-24 20:55:06 -06:00
Greg Hellings 1a6e51579b Compiling and linking with sword 2025-02-24 15:59:24 -06:00
Greg Hellings c8dfcc61e2 Add cxx crates and sword to dependencies 2025-02-24 10:42:31 -06:00
Greg Hellings 7f92974785 Basic scaffolding 2025-02-24 10:14:02 -06:00