servo/components/net_traits
Simon Sapin 1f7ebfc8a2 Make mach test-unit not recompile components after mach build
Previously, the `tests` feature flag of the `embedder_traits` crate
caused it and every crate recursively depending on it to be built twice.

This feature flag was used to provide a specific set of "resources"
when running tests. Instead, this commits overrides the `main()` function
of the test harness to change resources at runtime before running any test.

This is done by adding a dependency that has `name = "test"` in its
`[lib]` section of `Cargo.toml`. This overrides the crate found by
`extern crate test;` in code generated by `rustc --test`.
2018-10-07 13:27:23 +02:00
..
image Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
tests Automatically provide a resource reader for tests 2018-04-30 22:19:33 +08:00
blob_url_store.rs Fix commonmark Markdown warnings in docs, part 1 2017-10-17 11:24:57 -07:00
Cargo.toml Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
filemanager_thread.rs move msg to embedder_traits, use in script, handle send error in embedder 2018-05-23 21:45:57 +08:00
image_cache.rs Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
lib.rs delegate resource reading to embedder 2018-04-27 15:34:52 +08:00
net_error_list.rs Move net_error_list from net to net_traits. Fixes #7050. 2015-08-06 16:37:08 -05:00
pub_domains.rs delegate resource reading to embedder 2018-04-27 15:34:52 +08:00
request.rs Merge functionality of WebsocketConnect into Fetch 2017-10-24 20:54:19 -07:00
response.rs Measure cache memory usage (#19251): 2018-04-01 13:30:57 -04:00
storage_thread.rs Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00