Repository: servo/servo
File: components/config/prefs.rs (Rust)

Code before:
    pub layout_css_transition_behavior_enabled: bool,
    // feature: CSS Flexbox | #12453 | Web/CSS/Guides/Flexible_box_layout
    pub layout_flexbox_enabled: bool,
    pub layout_style_sharing_cache_enabled: bool,
    pub layout_threads: i64,
    pub layout_unimplemented: bool,
    // feature: Variable fonts | #38800 | Web/CSS/Guides/Fonts/Variable_fonts
    pub layout_variable_fonts_enabled: bool,
    // feature: CSS writing modes | #2560 | Web/CSS/Guides/Writing_modes
    pub layout_writing_mode_enabled: bool,
    /// Enable hardware acceleration for video playback.
    pub media_glvideo_enabled: bool,
    /// Enable a non-standard event handler for verifying behavior of media elements during tests.
    pub media_testing_enabled: bool,
    pub network_enforce_tls_enabled: bool,
    pub network_enforce_tls_localhost: bool,
    pub network_enforce_tls_onion: bool,
    pub network_http_cache_disabled: bool,
    /// A url for a http proxy. We treat an empty string as no proxy.
    pub network_http_proxy_uri: String,
    /// A url for a https proxy. We treat an empty string as no proxy.
    pub network_https_proxy_uri: String,
    /// The domains for which we will not have a proxy. No effect if `network_http_proxy_uri` is not set.
    pub network_http_no_proxy: String,
    /// The weight of the http memory cache
    /// Notice that this is not equal to the number of different urls in the cache.
    pub network_http_cache_size: u64,
    pub network_local_directory_listing_enabled: bool,
    pub network_mime_sniff: bool,
    /// Force the use of `rust-webpki` verification for CA roots. If this is false (the
    /// default), then `rustls-platform-verifier` will be used, except on Android where
    /// `rust-webpki` is always used.
    pub network_use_webpki_roots: bool,
    pub session_history_max_length: i64,
    /// The background color of shell's viewport. This will be used by OpenGL's `glClearColor`.
    pub shell_background_color_rgba: [f64; 4],
    pub webgl_testing_context_creation_error: bool,
    /// Number of workers per threadpool, if we fail to detect how much
    /// parallelism is available at runtime.
    pub threadpools_fallback_worker_num: i64,
    /// Maximum number of workers for the Image Cache thread pool
    pub threadpools_image_cache_workers_max: i64,
    /// Maximum number of workers for the IndexedDB thread pool
    pub threadpools_indexeddb_workers_max: i64,
    /// Maximum number of workers for the Web Storage thread pool
    pub threadpools_webstorage_workers_max: i64,
    /// Maximum number of workers for the Networking async runtime thread pool
    pub threadpools_async_runtime_workers_max: i64,
    /// Maximum number of workers for the Core Resource Manager
    pub threadpools_resource_workers_max: i64,
    /// Maximum number of workers for webrender

Review comment (suggestion):
Perhaps we should link https://docs.rs/hyper-util/latest/hyper_util/client/proxy/matcher/struct.Builder.html#method.no here, since the exact behavior of `no_proxy` is not consistent across tools. I think documenting servos behavior here would be helpful for embedders. 

Code after:
    pub layout_css_transition_behavior_enabled: bool,
    // feature: CSS Flexbox | #12453 | Web/CSS/Guides/Flexible_box_layout
    pub layout_flexbox_enabled: bool,
    pub layout_style_sharing_cache_enabled: bool,
    pub layout_threads: i64,
    pub layout_unimplemented: bool,
    // feature: Variable fonts | #38800 | Web/CSS/Guides/Fonts/Variable_fonts
    pub layout_variable_fonts_enabled: bool,
    // feature: CSS writing modes | #2560 | Web/CSS/Guides/Writing_modes
    pub layout_writing_mode_enabled: bool,
    /// Enable hardware acceleration for video playback.
    pub media_glvideo_enabled: bool,
    /// Enable a non-standard event handler for verifying behavior of media elements during tests.
    pub media_testing_enabled: bool,
    pub network_enforce_tls_enabled: bool,
    pub network_enforce_tls_localhost: bool,
    pub network_enforce_tls_onion: bool,
    pub network_http_cache_disabled: bool,
    /// A url for a http proxy. We treat an empty string as no proxy.
    pub network_http_proxy_uri: String,
    /// A url for a https proxy. We treat an empty string as no proxy.
    pub network_https_proxy_uri: String,
    /// The domains for which we will not have a proxy. No effect if `network_http_proxy_uri` is not set.
    /// The exact behavior is given by
    /// <https://docs.rs/hyper-util/latest/hyper_util/client/proxy/matcher/struct.Builder.html#method.no>
    pub network_http_no_proxy: String,
    /// The weight of the http memory cache
    /// Notice that this is not equal to the number of different urls in the cache.
    pub network_http_cache_size: u64,
    pub network_local_directory_listing_enabled: bool,
    pub network_mime_sniff: bool,
    /// Force the use of `rust-webpki` verification for CA roots. If this is false (the
    /// default), then `rustls-platform-verifier` will be used, except on Android where
    /// `rust-webpki` is always used.
    pub network_use_webpki_roots: bool,
    pub session_history_max_length: i64,
    /// The background color of shell's viewport. This will be used by OpenGL's `glClearColor`.
    pub shell_background_color_rgba: [f64; 4],
    pub webgl_testing_context_creation_error: bool,
    /// Number of workers per threadpool, if we fail to detect how much
    /// parallelism is available at runtime.
    pub threadpools_fallback_worker_num: i64,
    /// Maximum number of workers for the Image Cache thread pool
    pub threadpools_image_cache_workers_max: i64,
    /// Maximum number of workers for the IndexedDB thread pool
    pub threadpools_indexeddb_workers_max: i64,
    /// Maximum number of workers for the Web Storage thread pool
    pub threadpools_webstorage_workers_max: i64,
    /// Maximum number of workers for the Networking async runtime thread pool
    pub threadpools_async_runtime_workers_max: i64,
    /// Maximum number of workers for the Core Resource Manager