2016-01-10 04:44:17 +03:00
|
|
|
[package]
|
|
|
|
name = "geckoservo"
|
|
|
|
version = "0.0.1"
|
|
|
|
authors = ["The Servo Project Developers"]
|
2016-07-14 19:33:18 +03:00
|
|
|
license = "MPL-2.0"
|
2016-01-10 04:44:17 +03:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "geckoservo"
|
|
|
|
path = "lib.rs"
|
|
|
|
|
2016-12-10 14:21:42 +03:00
|
|
|
[features]
|
2018-09-17 08:31:16 +03:00
|
|
|
gecko_debug = ["style/gecko_debug", "nsstring/gecko_debug"]
|
2019-05-14 08:00:45 +03:00
|
|
|
gecko_profiler = ["style/gecko_profiler"]
|
2019-05-27 15:56:08 +03:00
|
|
|
gecko_refcount_logging = ["style/gecko_refcount_logging", "servo_arc/gecko_refcount_logging"]
|
2016-12-10 14:21:42 +03:00
|
|
|
|
2016-01-10 04:44:17 +03:00
|
|
|
[dependencies]
|
2017-01-04 06:20:59 +03:00
|
|
|
atomic_refcell = "0.1"
|
2019-11-01 00:35:05 +03:00
|
|
|
bincode = "1.0"
|
2019-12-04 22:54:06 +03:00
|
|
|
cssparser = "0.27"
|
2018-02-14 14:49:38 +03:00
|
|
|
cstr = "0.1.2"
|
2016-01-19 11:49:10 +03:00
|
|
|
libc = "0.2"
|
2018-03-28 22:08:52 +03:00
|
|
|
log = {version = "0.4", features = ["release_max_level_info"]}
|
servo: Merge #18452 - Overhaul MallocSizeOf and related things (from nnethercote:bug-1398737); r=jdm
This patch makes the MallocSizeOf stuff in Stylo work more like the HeapSizeOf
stuff already in Servo, except better. In particular, it adds deriving support
for MallocSizeOf, which will make it easier to improve coverage.
The patch does the following.
- Combines servo/components/style/stylesheets/memory.rs and the heapsize crate
into a new crate, malloc_size_of.
- Forks the heapsize_derive crate, calling it malloc_size_of, so that
MallocSizeOf can be derived.
- Both the new crates have MIT/Apache licenses, like heapsize, in case they are
incorporated into heapsize in the future.
- Renames the methods within MallocSizeOf and the related traits so they are
more concise.
- Removes MallocSizeOfWithGuard.
- Adds `derive(MallocSizeOf)` to a lot of types, in some cases replacing an
equivalent or almost-equivalent hand-written implementation.
- Adds stuff so that Rc/Arc can be handled properly.
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because tested on Gecko side.
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Source-Repo: https://github.com/servo/servo
Source-Revision: 7f4cb1861b172423781a369b2decca6c65d60546
--HG--
rename : servo/components/hashglobe/LICENSE-APACHE => servo/components/malloc_size_of/LICENSE-APACHE
rename : servo/components/hashglobe/LICENSE-MIT => servo/components/malloc_size_of/LICENSE-MIT
rename : servo/components/jstraceable_derive/Cargo.toml => servo/components/malloc_size_of_derive/Cargo.toml
rename : servo/components/hashglobe/LICENSE-APACHE => servo/components/malloc_size_of_derive/LICENSE-APACHE
rename : servo/components/hashglobe/LICENSE-MIT => servo/components/malloc_size_of_derive/LICENSE-MIT
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a8254c4ae15901b764d918355e900a1e74d6eb03
2017-09-12 06:11:25 +03:00
|
|
|
malloc_size_of = {path = "../../components/malloc_size_of"}
|
2019-01-05 01:03:56 +03:00
|
|
|
nsstring = {path = "../../../xpcom/rust/nsstring/"}
|
2018-08-21 18:34:21 +03:00
|
|
|
num-traits = "0.2"
|
2020-04-12 22:14:43 +03:00
|
|
|
parking_lot = "0.10"
|
2018-01-13 01:55:12 +03:00
|
|
|
selectors = {path = "../../components/selectors"}
|
2017-07-19 16:03:17 +03:00
|
|
|
servo_arc = {path = "../../components/servo_arc"}
|
2019-12-06 02:30:59 +03:00
|
|
|
smallvec = "1.0"
|
2016-06-27 17:47:34 +03:00
|
|
|
style = {path = "../../components/style", features = ["gecko"]}
|
|
|
|
style_traits = {path = "../../components/style_traits"}
|
2019-03-30 03:16:27 +03:00
|
|
|
to_shmem = {path = "../../components/to_shmem"}
|