Skip to content

DaanA32/minimal-actix-sqlx-musl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal actix / sqlx with MUSL

  1. Install musl-gcc:
  • eg: sudo apt install musl-tools
  1. Setup musl openssl:
  1. Setup place mysql db link in .env
  2. Create model table: eg:
    create table musl (demo varchar(255));
  3. Install rustup target
    rustup target add x86_64-unknown-linux-musl
  4. Build musl (ensure you have x86_64-unknown-linux-musl target):
    PKG_CONFIG_ALLOW_CROSS=1 OPENSSL_STATIC=true OPENSSL_DIR=/musl cargo build --target x86_64-unknown-linux-musl
    or with cargo make
    cargo make debug_musl
  5. Verify linking:
    $ ldd target/x86_64-unknown-linux-musl/debug/musl_demo                                                                                  11:09:07
    statically linked

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published