Skip to content

Latest commit

Β 

History

History
31 lines (22 loc) Β· 677 Bytes

File metadata and controls

31 lines (22 loc) Β· 677 Bytes

lib-loading

An example of loading a dynamic library, and using the function it contains. This is achieved using the libloading crate.

Directory structure

getting-rusty/lib-loading on main [$] via πŸ¦€ v1.69.0
➜ tree . -d
.
β”œβ”€β”€ executor        # Contains the executor crate
β”‚Β Β  └── src
└── hello-world     # Contains the hello-world shared library 
    └── src

Dependencies

  • libloading (v0.8)

Build and Run

The project root contains a Makefile that can be used to build and run the project.

# Build the project
make build

# Run the project
make run