Skip to content

tcmalloc rust bindings#276

Closed
jayakasadev wants to merge 5 commits intogoogle:masterfrom
jayakasadev:rust_client
Closed

tcmalloc rust bindings#276
jayakasadev wants to merge 5 commits intogoogle:masterfrom
jayakasadev:rust_client

Conversation

@jayakasadev
Copy link
Contributor

@jayakasadev jayakasadev commented Mar 26, 2025

Added tcmalloc_rs which generates necessary rust bindings and surfaces a lib for rust users to adopt tcmalloc.

@jayakasadev jayakasadev force-pushed the rust_client branch 2 times, most recently from 61ccfdb to ed11cc4 Compare March 26, 2025 20:20
@jayakasadev jayakasadev marked this pull request as draft March 26, 2025 20:21
@jayakasadev jayakasadev force-pushed the rust_client branch 7 times, most recently from f9e8f49 to fc939a7 Compare March 27, 2025 13:30
@jayakasadev jayakasadev marked this pull request as ready for review March 27, 2025 13:37
@0xdeafbeef
Copy link

0xdeafbeef commented May 20, 2025

all you need is to add this rule to the root build.

cc_static_library(
    name = "tcmalloc_fat",
    deps = [
        "//tcmalloc:tcmalloc",
    ],
    visibility = ["//visibility:public"]
)

than

./bazelisk-linux-amd64 build //tcmalloc:tcmalloc_fat --features=-disallow_absolute_includes_from_system_paths --experimental_cc_static_library

also better to build it using only cc without pulling bazel

@maratik123
Copy link

also better to build it using only cc without pulling bazel

I've made attempt to build rust wrapper for tcmalloc without bazel:
https://github.com/maratik123/tcmalloc-better/

jayakasadev and others added 4 commits September 30, 2025 19:57
# Conflicts:
#	MODULE.bazel

# Conflicts:
#	tcmalloc/BUILD
� Conflicts:
�	tcmalloc/BUILD
�	tcmalloc_rs/BUILD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants