Hi Roland, I downloaded regex-master.zip and unzipped it.
I had the rust compiler already installed some time ago. And I play a bit with it before.
Then I ran from the terminal:
cargo build, which creates
libregex.rlib in target/debug/
You can also run
cargo build --release, which creates a
libregex.rlib in target/release/
Code: Select all
~/Downloads/regex-master$ cargo build
Updating crates.io index
Downloaded aho-corasick v0.7.20
Downloaded memchr v2.5.0
Downloaded 2 crates (177.3 KB) in 0.62s
Compiling memchr v2.5.0
Compiling regex-syntax v0.6.28 (/home/badidea/Downloads/regex-master/regex-syntax)
Compiling aho-corasick v0.7.20
Compiling regex v1.7.1 (/home/badidea/Downloads/regex-master)
Finished dev [unoptimized + debuginfo] target(s) in 1m 20s
Code: Select all
~/Downloads/regex-master$ cargo build --release
Compiling memchr v2.5.0
Compiling regex-syntax v0.6.28 (/home/badidea/Downloads/regex-master/regex-syntax)
Compiling aho-corasick v0.7.20
Compiling regex v1.7.1 (/home/badidea/Downloads/regex-master)
Finished release [optimized + debuginfo] target(s) in 28.77s
As you can see, compiling rust code is not fast. But it does a lot of smart stuff in the process.
Normally you run it with
cargo run, but this is a library, not an executable.
More info:
https://doc.rust-lang.org/stable/book/c ... go-project
I did not try to link the library with freebasic, you asked for a start