-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
38 lines (33 loc) · 1.38 KB
/
Cargo.toml
File metadata and controls
38 lines (33 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2024 by Composable Foundation
# Copyright 2025 by Michał Nazarewicz
[package]
name = "solana-allocator"
version = "0.1.2"
description = "A global allocator for Solana programs supporting ≥32 KiB heap sizes and mutable global state."
authors = ["Michal Nazarewicz <mina86@mina86.com>"]
homepage = "https://codeberg.org/mina86/solana-allocator"
license = "GPL-2.0-or-later"
edition = "2021"
readme = "README.md"
[dependencies]
# We don’t use `derive` feature but it’s likely that our users will need it so
# enable it here so users can just do `bytemuck = "*"` in their `Cargo.toml`.
bytemuck = { version = "1.21", default-features = false, features = ["derive"] }
[features]
default = []
# If enabled, poke last byte of the allocation. Since the allocator
# doesn’t know how big the heap is, if we run out of memory, this is
# a way to force a segfault.
#
# Without this feature, the segfault will happen when user tries to
# use the memory past the heap size. This is a bit like
# over-committing in Linux behaves where allocations always succeed
# and failure happens only when user writes to a page and Linux fails
# to allocate it.
#
# Disabling this is a µoptimisation which removes a couple of
# instructions from the allocation code at the cost of deferring
# allocation failure errors.
poke = []
# Exposes some internal functions. Meant only for testing.
__internal = []