Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
46ab148
initial commit of merged repo
SchrodingerZhu Jan 20, 2020
5a57c77
Add MIT LICENSE
SchrodingerZhu Jan 20, 2020
637f891
add more info to make it published
SchrodingerZhu Jan 20, 2020
cefc585
fix document
SchrodingerZhu Jan 20, 2020
6aa381c
use default generator on unix
SchrodingerZhu Jan 21, 2020
9c86efd
Update to version 0.2.0
SchrodingerZhu Jan 23, 2020
1139725
fix msvc building
SchrodingerZhu Jan 24, 2020
51cc0e1
remove unused unstable feature
SchrodingerZhu Jan 24, 2020
063cd5f
add travis ci
SchrodingerZhu Jan 24, 2020
9eddb05
Ci (#1)
SchrodingerZhu Jan 24, 2020
87b3a1d
bump version to 1.2.1
SchrodingerZhu Jan 24, 2020
6ea52da
Minor typos.
mjp41 Jan 27, 2020
089d298
Merge pull request #2 from mjp41/master
SchrodingerZhu Jan 27, 2020
1892d89
inlining allocation calls
snf Jan 31, 2020
fd9a153
overriding CMAKE_CXX_FLAGS_RELEASE and CMAKE_C_FLAGS_RELEASE in Windo…
snf Jan 31, 2020
600ba76
Merge pull request #5 from snf/win_perf
SchrodingerZhu Feb 2, 2020
f45ef52
adjust build args order
SchrodingerZhu Feb 2, 2020
4cd531f
update version and sync snmalloc
SchrodingerZhu Feb 2, 2020
e64fb97
Merge pull request #6 from SchrodingerZhu/build-and-update
SchrodingerZhu Feb 2, 2020
86cbebe
Bump snmalloc-sys/snmalloc from `7e22d30` to `1d72024`
dependabot-preview[bot] Feb 6, 2020
824df4e
Merge pull request #10 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Feb 6, 2020
eaa419e
sync the latest snmalloc 4367a0c
SchrodingerZhu Feb 6, 2020
bcdb657
bump version to 0.2.3
SchrodingerZhu Feb 6, 2020
301c8e5
Remove redundant requirement
mjp41 Feb 7, 2020
1aef969
Typo
mjp41 Feb 7, 2020
15af618
Merge pull request #11 from mjp41/master
SchrodingerZhu Feb 8, 2020
b31dda3
Bump snmalloc-sys/snmalloc from `4367a0c` to `3775a62`
dependabot-preview[bot] Feb 11, 2020
1137d98
Merge pull request #12 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Feb 13, 2020
e1c18d5
bump version to 0.2.4
SchrodingerZhu Feb 13, 2020
6036054
Bump snmalloc-sys/snmalloc from `3775a62` to `ef77bcc`
dependabot-preview[bot] Mar 4, 2020
6aa882e
Merge pull request #15 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Mar 4, 2020
265c3d4
remove wrong item in documentation
SchrodingerZhu Mar 4, 2020
a358c33
bump version to 0.2.5
SchrodingerZhu Mar 4, 2020
d68fb78
Bump snmalloc-sys/snmalloc from `ef77bcc` to `51e9193`
dependabot-preview[bot] Mar 5, 2020
353af7c
Merge pull request #16 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Mar 7, 2020
6b0c920
refactor build.rs (#18)
SchrodingerZhu Mar 8, 2020
bef7464
Add Bsd Tests (#20)
SchrodingerZhu Mar 8, 2020
6bf9f13
bump version to 0.2.6
SchrodingerZhu Mar 8, 2020
51cf70d
fix mingw partly (#23)
SchrodingerZhu Mar 11, 2020
d349e75
Bump snmalloc-sys/snmalloc from `31da639` to `76eaf1a`
dependabot-preview[bot] Mar 11, 2020
185ff20
Merge pull request #24 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Mar 11, 2020
d964b72
Bump snmalloc-sys/snmalloc from `76eaf1a` to `8e3efcb`
dependabot-preview[bot] Mar 12, 2020
6cbff82
Merge pull request #25 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Mar 13, 2020
da92e5a
bump version to 0.2.7
SchrodingerZhu Mar 13, 2020
35f89af
[ci skip] small fix on README
SchrodingerZhu Mar 13, 2020
46e3208
Bump snmalloc-sys/snmalloc from `8e3efcb` to `8d33e1b`
dependabot-preview[bot] Mar 18, 2020
9a66d81
Merge pull request #26 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Mar 18, 2020
45d87ce
try arm64
SchrodingerZhu Mar 18, 2020
5a16d2a
try arm64: bionic
SchrodingerZhu Mar 18, 2020
5c54b8d
Bump snmalloc-sys/snmalloc from `8d33e1b` to `4246d9a`
dependabot-preview[bot] Mar 19, 2020
d6c7ee4
Bump snmalloc-sys/snmalloc from `4246d9a` to `60861ee`
dependabot-preview[bot] Mar 20, 2020
bb16e4a
bump version to 0.2.8
SchrodingerZhu Mar 21, 2020
c35e3b4
Bump snmalloc-sys/snmalloc from `60861ee` to `77c4536`
dependabot-preview[bot] Mar 26, 2020
1dabd0a
Bump snmalloc-sys/snmalloc from `77c4536` to `d900e29`
dependabot-preview[bot] Apr 1, 2020
a88b7eb
version 0.2.9
SchrodingerZhu Apr 1, 2020
f26b67e
Bump snmalloc-sys/snmalloc from `d900e29` to `74657d9`
dependabot-preview[bot] Apr 7, 2020
35d1539
Bump snmalloc-sys/snmalloc from `74657d9` to `cf9c2eb`
dependabot-preview[bot] Apr 10, 2020
52f1bc1
Bump snmalloc-sys/snmalloc from `cf9c2eb` to `cbaf0f7`
dependabot-preview[bot] Apr 13, 2020
aa87797
Merge pull request #43 from SchrodingerZhu/dependabot/submodules/snma…
SchrodingerZhu Apr 13, 2020
43260ba
bump version 0.2.10
SchrodingerZhu Apr 13, 2020
b0c29cb
Bump snmalloc-sys/snmalloc from `cbaf0f7` to `0f5cc16`
dependabot-preview[bot] Apr 16, 2020
ba724c2
android build script
SchrodingerZhu Apr 16, 2020
30e5f56
use TARGET to detect all
SchrodingerZhu Apr 21, 2020
b4ce158
[ci skip] bump version to 0.2.11
SchrodingerZhu Apr 21, 2020
46e278e
mingw: try to detect lib search dirs
imkiva Apr 28, 2020
584e18a
mingw: link against atomic instead of atomic-1
imkiva Apr 28, 2020
95e3452
update version and docs
SchrodingerZhu Apr 29, 2020
cd79598
Bump snmalloc-sys/snmalloc from `a43773c` to `c899ee7`
dependabot-preview[bot] May 7, 2020
cbd27e6
Bump snmalloc-sys/snmalloc from `c899ee7` to `4347701`
dependabot-preview[bot] May 7, 2020
e09ffe2
bump the version to 0.2.13
SchrodingerZhu May 9, 2020
a588749
Bump snmalloc-sys/snmalloc from `4347701` to `958de73`
dependabot-preview[bot] May 20, 2020
8f3b91b
Bump snmalloc-sys/snmalloc from `958de73` to `87dfd41`
dependabot-preview[bot] May 25, 2020
afbae5c
Bump snmalloc-sys/snmalloc from `87dfd41` to `c7736a2`
dependabot-preview[bot] May 29, 2020
6b0f8a1
sync w/ upstream and seperate CPU features (#62)
SchrodingerZhu May 29, 2020
e45ff8f
fix windows and sync w/ upstream
SchrodingerZhu Jun 8, 2020
71b7952
bump version to 0.2.15
SchrodingerZhu Jun 8, 2020
ebd7f98
Bump snmalloc-sys/snmalloc from `61afa77` to `e393ac8` (#65)
dependabot-preview[bot] Jun 19, 2020
09f34da
sync w/ upstream
SchrodingerZhu Jun 28, 2020
07f41eb
ci allow failure mingw (#69)
SchrodingerZhu Jun 28, 2020
f93ed67
New memory configuration (#72)
SchrodingerZhu Jul 9, 2020
56afdae
add msvc flag /EHsc to fix warning C4530
kylixs Jul 29, 2020
3b8be55
bump version to 0.2.18
SchrodingerZhu Jul 30, 2020
f6cfb1d
Bump snmalloc-sys/snmalloc from `4e1f582` to `c9b023b`
dependabot-preview[bot] Aug 6, 2020
752008b
update freebsd image
SchrodingerZhu Sep 2, 2020
9e68ec5
workaround macos issue
SchrodingerZhu Sep 19, 2020
964a296
bump version to 0.2.19
SchrodingerZhu Sep 19, 2020
7f5e23e
Bump snmalloc-sys/snmalloc from `e615c33` to `923705e`
dependabot-preview[bot] Sep 29, 2020
3e4ce06
Bump snmalloc-sys/snmalloc from `923705e` to `49b9856`
dependabot-preview[bot] Oct 6, 2020
89efca1
Bump snmalloc-sys/snmalloc from `49b9856` to `0db4633`
dependabot-preview[bot] Oct 13, 2020
ad553bc
Bump snmalloc-sys/snmalloc from `0db4633` to `8990c34`
dependabot-preview[bot] Oct 19, 2020
4b0a88e
bump version to 0.2.20
SchrodingerZhu Oct 24, 2020
a892927
Bump snmalloc-sys/snmalloc from `8990c34` to `2385eb2`
dependabot-preview[bot] Nov 11, 2020
24f189b
bump version to 0.2.21
SchrodingerZhu Nov 12, 2020
a3e8f0f
Bump snmalloc-sys/snmalloc from `2385eb2` to `3e7ea1a`
dependabot-preview[bot] Dec 3, 2020
2e90d73
Bump snmalloc-sys/snmalloc from `3e7ea1a` to `975a2bd`
dependabot-preview[bot] Dec 22, 2020
882aad3
bump version: 0.2.22
SchrodingerZhu Dec 30, 2020
9639c37
Bump snmalloc-sys/snmalloc from `975a2bd` to `4837c82`
dependabot-preview[bot] Jan 11, 2021
c5c62e9
Bump snmalloc-sys/snmalloc from `4837c82` to `db3580a`
dependabot-preview[bot] Jan 14, 2021
c071a20
bump version to 0.2.23
SchrodingerZhu Jan 24, 2021
e24dc25
fix: remove /MD from cmake config
SchrodingerZhu Feb 2, 2021
d87e93c
Bump snmalloc-sys/snmalloc from `db3580a` to `a3660c4`
dependabot-preview[bot] Jan 28, 2021
2cbd2c3
bump version to 0.2.24
SchrodingerZhu Feb 2, 2021
c83b7bd
Create rust.yml
mjp41 Feb 2, 2021
874cc25
Pull submodule.
mjp41 Feb 2, 2021
d55d893
Add platforms
mjp41 Feb 2, 2021
cd1f711
More options
mjp41 Feb 2, 2021
ab395b5
Bump snmalloc-sys/snmalloc from `a3660c4` to `e3b3596`
dependabot-preview[bot] Feb 10, 2021
fb21fc2
Bump snmalloc-sys/snmalloc from `e3b3596` to `ee470c5`
dependabot-preview[bot] Feb 12, 2021
3d63731
Bump snmalloc-sys/snmalloc from `ee470c5` to `8840b38`
dependabot-preview[bot] Feb 24, 2021
a94dc54
Addition of non-allocation tracking functions
ryancinsight Mar 2, 2021
c5be3f7
Update lib.rs
ryancinsight Mar 2, 2021
f1d27af
bump submodule
SchrodingerZhu Mar 5, 2021
17454b0
update version and readme
SchrodingerZhu Mar 5, 2021
f4e4de7
use cc instead of cmake
Mar 11, 2021
d541d9d
Allow specification of cc as a feature
Mar 12, 2021
d3f736c
make builds mutually exclusive
Mar 12, 2021
8da2e88
addition of build_cc to the Readme
Mar 14, 2021
e740c03
bump version: 0.2.26
SchrodingerZhu Mar 15, 2021
e0cda35
Bump snmalloc-sys/snmalloc from `1d12e34` to `c5b65d0`
dependabot-preview[bot] Mar 29, 2021
633b0b6
remove libc usage
ryancinsight Apr 21, 2021
753b1ae
check if -Wmaybe-unitialized removes warning
ryancinsight Apr 22, 2021
d1f55f6
Revert "check if -Wmaybe-unitialized removes warning"
ryancinsight Apr 22, 2021
bb3223c
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 28, 2021
157ef80
Merge pull request #132 from ryancinsight/master
SchrodingerZhu Apr 29, 2021
8a59e64
addition of windows 7 and 8 compatibility
ryancinsight Apr 29, 2021
de8f917
Merge pull request #138 from ryancinsight/master
SchrodingerZhu May 2, 2021
96ee80e
bump version to 0.2.27
SchrodingerZhu May 2, 2021
da66981
no hardcoded profile for build_cc build.
devnexen May 2, 2021
91fd8fb
add MSVC support possibly
devnexen May 3, 2021
8457da5
Merge pull request #139 from devnexen/profile_for_build_cc
SchrodingerZhu May 4, 2021
4292a34
Snmalloc v1 maintain oct 10 2021 (#161)
SchrodingerZhu Oct 11, 2021
8247795
Snmalloc 2 (#164)
SchrodingerZhu Jan 30, 2022
c86b121
Correct dependency version (#166)
shepmaster May 18, 2022
19e6103
0.3.0 release (#167)
mjp41 May 31, 2022
cdce0e0
build_cc fix (#168)
mjp41 Jun 1, 2022
ab17b1a
Add native-cpu to CI
mjp41 Jun 1, 2022
41f59cd
Merge pull request #170 from mjp41/native-cpu
mjp41 Jun 7, 2022
83952a4
Updates for 0.3.1 release
mjp41 Jun 7, 2022
c21e4e4
Merge pull request #171 from mjp41/0-3-1
mjp41 Jun 8, 2022
20ce0f2
Version bump
mjp41 Jun 17, 2022
b97b0bc
Merge pull request #172 from mjp41/0.3.2-update
mjp41 Jun 17, 2022
5d97eab
Version bump
mjp41 Jun 17, 2022
9a7987c
Merge pull request #173 from mjp41/0.3.3-update
mjp41 Jun 17, 2022
aa0d241
Update snmalloc to latest release. (#175)
mjp41 Jun 29, 2023
21adcc3
ci: update freebsd to 15-snap (#177)
SchrodingerZhu Feb 10, 2024
e0e4bfa
update proposal. (#176)
devnexen Feb 10, 2024
9e939e9
exposing sn_malloc_usable_size as a mean to assess how much the (#178)
devnexen Feb 12, 2024
609bcb0
update readme to reflect last changes (#179)
devnexen Feb 29, 2024
8897bb7
fix needless borrow clippy warning for gcc on windows (#180)
devnexen Mar 27, 2024
09ae270
adding macos 14 (arm64) to CI (#181)
devnexen Mar 27, 2024
0f60171
github actions update (#182)
devnexen Mar 30, 2024
b130a78
update snmalloc to last updates. (#183)
devnexen Jun 12, 2024
1e9b09f
fix clippy warnings (#184)
devnexen Jun 12, 2024
865ded8
bump version (#185)
SchrodingerZhu Jun 12, 2024
a564ef9
update to last changes on main (#186)
devnexen Sep 20, 2024
95fd6ce
github action for macOs is going to remove 12 release support. (#188)
devnexen Oct 29, 2024
743c672
snmalloc to benefits from recent fixes. (#189)
devnexen Nov 16, 2024
a517429
sync up with upstream (#190)
SchrodingerZhu Nov 28, 2024
c9d63b2
build compatibility and thread sharing (#191)
ryancinsight Dec 6, 2024
ed3a6c9
Update snmalloc to 0.7.1 (#195)
mjp41 Feb 6, 2025
9ccb725
add libc api feature (#198)
wpbrown Apr 5, 2025
ec0b1e9
Relocated for merge.
mjp41 Jan 27, 2026
97620cd
Adjust CI.
mjp41 Jan 27, 2026
07e6602
Fix Windows Rust Build
mjp41 Jan 28, 2026
84a0548
Merge branch 'snmalloc-rs-premerge' into HEAD
mjp41 Jan 28, 2026
d3a90b9
Merge branch 'main' into snmalloc-rs-integration
mjp41 Jan 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: gitsubmodule
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
71 changes: 71 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: snmalloc-rs CI

# The following should ensure that the workflow only runs a single set of actions
# for each PR. But it will not apply this to pushes to the main branch.
concurrency:
group: ${{ github.ref }}-rust
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ${{ matrix.os }}
name: "${{ matrix.os }}-${{ matrix.release.name }}-${{ matrix.rust }} (features: ${{ matrix.features.name }})"
defaults:
run:
shell: bash
working-directory:
./snmalloc-rs
strategy:
matrix:
os: [windows-latest, macos-14, macos-15, ubuntu-latest]
rust: [stable, nightly]
release:
- name: release
flag: "--release"
- name: debug
flag: ""
features:
- name: default
args: ""
- name: debug
args: "--features debug"
- name: check
args: "--features check"
- name: build_cc
args: '--features "build_cc usecxx17"'
- name: native-cpu
args: "--features native-cpu"
- name: local_dynamic_tls
args: "--features local_dynamic_tls"
- name: lto
args: "--features lto"
# Don't abort runners if a single one fails
fail-fast: false
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v4
- name: update dependency
run: |
if bash -c 'uname -s | grep 'Linux' >/dev/null'; then
sudo apt-get update -y && sudo apt-get --reinstall install -y libc6-dev
fi
shell: bash
- name: Build
run: cargo build ${{ matrix.release.flag }} --verbose ${{ matrix.features.args }}
- name: Run tests
run: cargo test ${{ matrix.release.flag }} --all ${{ matrix.features.args }}
7 changes: 7 additions & 0 deletions snmalloc-rs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
target
Cargo.lock
.idea

# vscode dirs
.vscode/
.vs/
168 changes: 168 additions & 0 deletions snmalloc-rs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
## Changelog

### 0.3.8

- Tracking upstream to match version 0.7.1
- Recommended to upgrade from 0.3.7 to get an important bug fix.

### 0.3.7

- Tracking upstream to match version 0.7

### 0.3.4
- Tracking upstream to match version 0.6.2

### 0.3.3
- Tracking upstream to fix Linux PAL typo.

### 0.3.2
- Tracking upstream to enable old Linux variants.

### 0.3.1
- Fixes `build_cc` feature (broken in 0.3.0 release).
- Fixes `native-cpu` feature (broken in 0.3.0 release).

### 0.3.0
- Release to follow upstream 0.6.0
- **upstream** Major redesign of the code to improve performance and
enable a mode that provides strong checks against corruption.

### 0.3.0-beta.1

- Beta release to support snmalloc 2

### 0.2.28
- Deprecation of `cache-friendly`
- Use exposed `alloc_zeroed` from `snmalloc`
- **upstream** changes of remote communication, corruption detection and compilation flag detection.

### 0.2.27

- Reduction of libc dependency
- **upstream** Windows 7 and windows 8 compatibility added
- **upstream** Option to use C++20 standards if available
- **upstream** Preparations of cherification (heavy refactors of the structure)
- **upstream** Cold routine annotations

### 0.2.26

- **upstream** Building adjustment
- option of cc crate as build feature, only c compiler needed, no cmake required
- Addition of dynamic local TLS option

### 0.2.25

- **upstream** Apple M1 support
- **upstream** Building adjust
- non-allocation tracking functions

### 0.2.24

- **upstream** update to use a more efficient power of 2 check
- fix msvc support w/ crt-static

### 0.2.23

- **upstream** fix external pagemap usage

### 0.2.22

- **upstream** avoid amplification when routing
- **upstream** remotely store sizeclass
- **upstream** limit flat pagemap size
- **upstream** limit medium slab header
- **upstream** solaris support fix

### 0.2.21

- **upstream** bug fix for using failing to initialise meta-data

### 0.2.20

- **upstream** pass through Haiku build fix.
- **upstream** fix typo in macro definition for 16MiB shared library shim.
- **upstream** DragonFly support (userland).
- **upstream** natural alignment for USE_MALLOC
- **upstream** fix bug in pagemap when index has many level
- **upstream** add constexpr annotation to align_up/down.

### 0.2.19

- **upstream** stats
- **upstream** PAL updates and concepts
- **upstream** ddd constexpr annotation to align_up/down
- change macOS CI to follow xcode 12

### 0.2.18

- add msvc flag /EHsc to fix warning C4530

### 0.2.17

- **upstream** add backoff for large reservation
- **upstream** default chunk configuration to 1mib
- add new feature flags

### 0.2.16

- **upstream** New implementation of address space reservation leading to
- better integration with transparent huge pages; and
- lower address space requirements and fragmentation.
- Notice MinGW broken state

### 0.2.15

- **upstream** fix VS2019 build
- **upstream** fix wrong realloc behavior and performance issue

### 0.2.14

- **upstream** refactor ptr representation.
- **upstream** improve for more targets and architectures.
- seperate native CPU feature

### 0.2.13

- **upstream** large realloc fix and minor updates

### 0.2.12

- improve mingw support

### 0.2.11

- add android support
- **upstream** support x86
- **upstream** support android
- **upstream** fix callback

### 0.2.10

- follow upstream 0.4.0
- **upstream** defense TLS teardown
- **upstream** adjust GCC warning
- **upstream** other release optimizations

### 0.2.9

- **upstream** fix OpenEnclave
- **upstream** adjust remote batch size (performance improved dramatically, see [benchmark](https://github.com/microsoft/snmalloc/pull/158#issuecomment-605816017)
- **upstream** improve slow path performance for allocation

### 0.2.8

- More CI (**ARM64 on QEMU**)
- **upstream** ARM(32/64) support
- **upstream** x86-SGX support

### 0.2.7

- partially fixed `mingw`
- **upstream** remote dealloc refactor (higher performance)
- **upstream** remove extra assertions

### 0.2.6

- fix `macos`/`freebsd ` support
- add more ci tests
- mark the `mingw` problem
36 changes: 36 additions & 0 deletions snmalloc-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
name = "snmalloc-rs"
version = "0.3.8"
authors = ["schrodingerzhu <[email protected]>"]
edition = "2021"
license = "MIT"
description = "rust bindings of snmalloc."
keywords = ["snmalloc", "allocator"]
categories = ["memory-management", "api-bindings"]
homepage = "https://github.com/microsoft/snmalloc"
repository = "https://github.com/microsoft/snmalloc"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace]
members = ["snmalloc-sys"]

[dependencies]
snmalloc-sys = { version = "0.3.8", path = "snmalloc-sys", default-features = false }

[features]
default = ["snmalloc-sys/build_cmake", "snmalloc-sys/usewait-on-address"]
build_cc = ["snmalloc-sys/build_cc"]
qemu = ["snmalloc-sys/qemu"]
debug = ["snmalloc-sys/debug"]
android-lld = ["snmalloc-sys/android-lld"]
native-cpu = ["snmalloc-sys/native-cpu"]
local_dynamic_tls = ["snmalloc-sys/local_dynamic_tls"]
win8compat = ["snmalloc-sys/win8compat"]
usecxx17 = ["snmalloc-sys/usecxx17"]
check = ["snmalloc-sys/check"]
lto = ["snmalloc-sys/lto"]
notls = ["snmalloc-sys/notls"]
stats = ["snmalloc-sys/stats"]
usewait-on-address = ["snmalloc-sys/usewait-on-address"]
libc-api = ["snmalloc-sys/libc-api"]
21 changes: 21 additions & 0 deletions snmalloc-rs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 SchrodingerZhu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading