Skip to content

rsoeldner/lurk-hs

 
 

Repository files navigation

Build and Test Instructions

Prerequisites

Before building and testing the project, make sure you have the following installed:

1. Install Go

If you don't already have Go installed, you can install it using the following commands:

# For Linux and macOS:
wget https://go.dev/dl/go1.21.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

# For macOS using Homebrew:
brew install go

# For Windows:
Download the installer from https://go.dev/dl/ and follow the installation instructions.

2. Install Rust

Make sure you have Rust installed by following the instructions here..

3. Install Haskell (Cabal)

Ensure that you have Haskell and Cabal installed by following the instructions here.

Build steps

  • Build the Rust part of the project:
cargo build --release
  • (For macOS only/cabal repl only) Build the dynamic library:
cargo rustc --release --crate-type cdylib
  • Build the Haskell part of the project:
cabal build

Testing

To run tests for the Rust components, execute:

cargo test

To run the example Haskell application, execute:

cabal run test

Troubleshooting

If you get "error while loading shared libraries", try:

cargo clean

This happens if the library is built against the .so file, and can happen if you ran cargo rustc --crate-type cdylib in the past.

About

Haskell Wrappers for Lurk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 59.6%
  • Rust 40.4%