gecko-dev/xpcom/rust/moz_task/Cargo.toml
Lina Cambridge 6bef7b8477 Bug 1542528 - Add an xpcom::c_str macro for creating static C strings. r=froydnj
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
2019-04-08 14:43:35 +00:00

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" }