mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
6bef7b8477
This is based on the `c_str` macro in `js/rust/src/heap.rs`, but returns a `NulTerminatedCStr` type that can be cast to a pointer. This commit also changes `ThreadPtrHolder::new` to take a `NulTerminatedCStr`, and removes an unnecessary `RefPtr` reference in `is_current_thread`. Differential Revision: https://phabricator.services.mozilla.com/D26429 --HG-- extra : moz-landing-system : lando
13 lines
301 B
TOML
13 lines
301 B
TOML
[package]
|
|
name = "moz_task"
|
|
version = "0.1.0"
|
|
authors = ["Myk Melez <myk@mykzilla.org>"]
|
|
license = "MPL-2.0"
|
|
description = "Rust wrappers around XPCOM threading functions"
|
|
|
|
[dependencies]
|
|
libc = "0.2"
|
|
nserror = { path = "../nserror" }
|
|
nsstring = { path = "../nsstring" }
|
|
xpcom = { path = "../xpcom" }
|