Skip to content

Commit 939472c

Browse files
authored
Glasalloc with flake (#1)
* Glasalloc with flakes * local scripts
1 parent c5b0310 commit 939472c

14 files changed

+642
-6
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ dist-newstyle
66
**/#*#
77
**/*~
88
cabal.project.local*
9+
10+
11+
# Added by cargo
12+
13+
/target
14+
/Cargo.lock
15+
lib/

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[package]
2+
name = "glasalloc"
3+
version = "0.1.0"
4+
edition = "2021"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# libglaswegian
22

3-
Use GHC's Memory Allocator from C/C++. Yes, I'm serious. You can do this:
3+
Use GHC's Memory Allocator from C, C++, and Rust. Yes, I'm serious. You can do this:
44

55
```c++
66
#include <iostream>

build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
println!("cargo:rustc-link-search=./lib");
3+
println!("cargo:rustc-link-lib=glaswegian");
4+
}

0 commit comments

Comments
 (0)