diff --git a/components/allocator/Cargo.toml b/components/allocator/Cargo.toml index 1fb3299e591..037e7e6e9ae 100644 --- a/components/allocator/Cargo.toml +++ b/components/allocator/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_allocator" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/atoms/Cargo.toml b/components/atoms/Cargo.toml index 9e6e07899e6..493088f7f24 100644 --- a/components/atoms/Cargo.toml +++ b/components/atoms/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_atoms" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false build = "build.rs" diff --git a/components/bluetooth/Cargo.toml b/components/bluetooth/Cargo.toml index 6f203b72e96..d6dbf63db4a 100644 --- a/components/bluetooth/Cargo.toml +++ b/components/bluetooth/Cargo.toml @@ -3,6 +3,7 @@ name = "bluetooth" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/bluetooth_traits/Cargo.toml b/components/bluetooth_traits/Cargo.toml index f21f289898c..d8cb171de3c 100644 --- a/components/bluetooth_traits/Cargo.toml +++ b/components/bluetooth_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "bluetooth_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml index 1ccbe5f9bd8..e411e415e99 100644 --- a/components/canvas/Cargo.toml +++ b/components/canvas/Cargo.toml @@ -3,6 +3,7 @@ name = "canvas" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/canvas_traits/Cargo.toml b/components/canvas_traits/Cargo.toml index edfb382d395..ae8eb8e4ec4 100644 --- a/components/canvas_traits/Cargo.toml +++ b/components/canvas_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "canvas_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/channel/Cargo.toml b/components/channel/Cargo.toml index 0eb5655eaaa..5b30d622830 100644 --- a/components/channel/Cargo.toml +++ b/components/channel/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_channel" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/compositing/Cargo.toml b/components/compositing/Cargo.toml index 2da835c463f..ed991671c9f 100644 --- a/components/compositing/Cargo.toml +++ b/components/compositing/Cargo.toml @@ -3,6 +3,7 @@ name = "compositing" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false build = "build.rs" diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index e69606ee4d2..175fbaf5ed8 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -20,7 +20,7 @@ use msg::constellation_msg::{PipelineId, PipelineIndex, PipelineNamespaceId}; use net_traits::image::base::Image; #[cfg(feature = "gleam")] use net_traits::image::base::PixelFormat; -use profile_traits::time::{self, ProfilerCategory, profile}; +use profile_traits::time::{self as profile_time, ProfilerCategory, profile}; use script_traits::{AnimationState, AnimationTickType, ConstellationMsg, LayoutControlMsg}; use script_traits::{MouseButton, MouseEventType, ScrollState, TouchEventType, TouchId}; use script_traits::{UntrustedNodeAddress, WindowSizeData, WindowSizeType}; @@ -150,7 +150,7 @@ pub struct IOCompositor { constellation_chan: Sender, /// The channel on which messages can be sent to the time profiler. - time_profiler_chan: time::ProfilerChan, + time_profiler_chan: profile_time::ProfilerChan, /// Touch input state machine touch_handler: TouchHandler, @@ -366,7 +366,7 @@ impl IOCompositor { // Tell the profiler, memory profiler, and scrolling timer to shut down. if let Ok((sender, receiver)) = ipc::channel() { self.time_profiler_chan - .send(time::ProfilerMsg::Exit(sender)); + .send(profile_time::ProfilerMsg::Exit(sender)); let _ = receiver.recv(); } diff --git a/components/config/Cargo.toml b/components/config/Cargo.toml index 648a048a03b..f08bf834deb 100644 --- a/components/config/Cargo.toml +++ b/components/config/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_config" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/constellation/Cargo.toml b/components/constellation/Cargo.toml index a036f0036d2..1e57a10e6f2 100644 --- a/components/constellation/Cargo.toml +++ b/components/constellation/Cargo.toml @@ -3,6 +3,7 @@ name = "constellation" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/debugger/Cargo.toml b/components/debugger/Cargo.toml index f03fd899332..2c9b38a4a70 100644 --- a/components/debugger/Cargo.toml +++ b/components/debugger/Cargo.toml @@ -3,6 +3,7 @@ name = "debugger" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/deny_public_fields/Cargo.toml b/components/deny_public_fields/Cargo.toml index f1637cf48e4..bc396ee720a 100644 --- a/components/deny_public_fields/Cargo.toml +++ b/components/deny_public_fields/Cargo.toml @@ -3,6 +3,7 @@ name = "deny_public_fields" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/devtools/Cargo.toml b/components/devtools/Cargo.toml index ba0b4d172c6..706550068ff 100644 --- a/components/devtools/Cargo.toml +++ b/components/devtools/Cargo.toml @@ -3,6 +3,7 @@ name = "devtools" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/devtools_traits/Cargo.toml b/components/devtools_traits/Cargo.toml index 26769dfba3d..f3a1868ff4a 100644 --- a/components/devtools_traits/Cargo.toml +++ b/components/devtools_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "devtools_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/domobject_derive/Cargo.toml b/components/domobject_derive/Cargo.toml index 80b6125bbab..0ab7212cafe 100644 --- a/components/domobject_derive/Cargo.toml +++ b/components/domobject_derive/Cargo.toml @@ -3,6 +3,7 @@ name = "domobject_derive" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/embedder_traits/Cargo.toml b/components/embedder_traits/Cargo.toml index eecedda4c8e..68f2917e2c2 100644 --- a/components/embedder_traits/Cargo.toml +++ b/components/embedder_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "embedder_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/geometry/Cargo.toml b/components/geometry/Cargo.toml index b9ad20b665d..a88b601e562 100644 --- a/components/geometry/Cargo.toml +++ b/components/geometry/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_geometry" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index a58a9880715..418f718c3f4 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -4,6 +4,7 @@ name = "gfx" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/gfx_traits/Cargo.toml b/components/gfx_traits/Cargo.toml index 8d558d19ba0..c52dbc18912 100644 --- a/components/gfx_traits/Cargo.toml +++ b/components/gfx_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "gfx_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/jstraceable_derive/Cargo.toml b/components/jstraceable_derive/Cargo.toml index 0b85fac1045..ecd035d1c09 100644 --- a/components/jstraceable_derive/Cargo.toml +++ b/components/jstraceable_derive/Cargo.toml @@ -3,6 +3,7 @@ name = "jstraceable_derive" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/layout/Cargo.toml b/components/layout/Cargo.toml index 82dfc992004..9a960b51305 100644 --- a/components/layout/Cargo.toml +++ b/components/layout/Cargo.toml @@ -3,6 +3,7 @@ name = "layout" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/layout_thread/Cargo.toml b/components/layout_thread/Cargo.toml index 23fbf91e677..30369ad2780 100644 --- a/components/layout_thread/Cargo.toml +++ b/components/layout_thread/Cargo.toml @@ -3,6 +3,7 @@ name = "layout_thread" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/layout_traits/Cargo.toml b/components/layout_traits/Cargo.toml index 162c7add7b4..881e67315e8 100644 --- a/components/layout_traits/Cargo.toml +++ b/components/layout_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "layout_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/metrics/Cargo.toml b/components/metrics/Cargo.toml index 608d7ffaa0a..ebc90d5f5cd 100644 --- a/components/metrics/Cargo.toml +++ b/components/metrics/Cargo.toml @@ -3,6 +3,7 @@ name = "metrics" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/msg/Cargo.toml b/components/msg/Cargo.toml index bfe3483113b..815e8962a58 100644 --- a/components/msg/Cargo.toml +++ b/components/msg/Cargo.toml @@ -3,6 +3,7 @@ name = "msg" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/net/Cargo.toml b/components/net/Cargo.toml index 099f2c17f71..798c85da1bd 100644 --- a/components/net/Cargo.toml +++ b/components/net/Cargo.toml @@ -3,6 +3,7 @@ name = "net" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false autotests = false # Inhibit lookup for tests/*.rs without [[test]] sections diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index 9ce078799f1..0e744e0de26 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -544,7 +544,7 @@ fn scheme_fetch( *done_chan = Some((done_sender.clone(), done_receiver)); *response.body.lock().unwrap() = ResponseBody::Receiving(vec![]); - let mut res_body = response.body.clone(); + let res_body = response.body.clone(); let cancellation_listener = context.cancellation_listener.clone(); @@ -589,7 +589,7 @@ fn scheme_fetch( return; } let length = { - let mut buffer = reader.fill_buf().unwrap().to_vec(); + let buffer = reader.fill_buf().unwrap().to_vec(); let mut buffer_len = buffer.len(); if let ResponseBody::Receiving(ref mut body) = *res_body.lock().unwrap() diff --git a/components/net_traits/Cargo.toml b/components/net_traits/Cargo.toml index 4d89992ff11..e7534bf77ee 100644 --- a/components/net_traits/Cargo.toml +++ b/components/net_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "net_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/pixels/Cargo.toml b/components/pixels/Cargo.toml index 0c2e47b07bb..40f14013452 100644 --- a/components/pixels/Cargo.toml +++ b/components/pixels/Cargo.toml @@ -3,6 +3,7 @@ name = "pixels" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/profile/Cargo.toml b/components/profile/Cargo.toml index 890a9aa9336..d9b3a14aecb 100644 --- a/components/profile/Cargo.toml +++ b/components/profile/Cargo.toml @@ -3,6 +3,7 @@ name = "profile" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/profile_traits/Cargo.toml b/components/profile_traits/Cargo.toml index ca9ce8aece6..28553f59de0 100644 --- a/components/profile_traits/Cargo.toml +++ b/components/profile_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "profile_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/rand/Cargo.toml b/components/rand/Cargo.toml index 56e34c6ec27..e41309fe56e 100644 --- a/components/rand/Cargo.toml +++ b/components/rand/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_rand" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/range/Cargo.toml b/components/range/Cargo.toml index 9786f7824f7..8aa28cf8263 100644 --- a/components/range/Cargo.toml +++ b/components/range/Cargo.toml @@ -4,6 +4,7 @@ name = "range" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/remutex/Cargo.toml b/components/remutex/Cargo.toml index 4f471f5378d..94d3ebb4c38 100644 --- a/components/remutex/Cargo.toml +++ b/components/remutex/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_remutex" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index 1b77ab3cab7..f2fd91df9bb 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -5,6 +5,7 @@ name = "script" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false build = "build.rs" diff --git a/components/script/dom/audiobuffer.rs b/components/script/dom/audiobuffer.rs index 149867590e4..2ebdfee5377 100644 --- a/components/script/dom/audiobuffer.rs +++ b/components/script/dom/audiobuffer.rs @@ -321,9 +321,8 @@ impl AudioBufferMethods for AudioBuffer { typedarray!(in(cx) let js_channel: Float32Array = js_channel); if let Ok(mut js_channel) = js_channel { let bytes_to_copy = min(self.length - start_in_channel, source.len() as u32) as usize; - let mut js_channel_data = unsafe { js_channel.as_mut_slice() }; - let (_, mut js_channel_data) = - js_channel_data.split_at_mut(start_in_channel as usize); + let js_channel_data = unsafe { js_channel.as_mut_slice() }; + let (_, js_channel_data) = js_channel_data.split_at_mut(start_in_channel as usize); unsafe { js_channel_data[0..bytes_to_copy].copy_from_slice(&source.as_slice()[0..bytes_to_copy]) }; diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index da0d27ce764..b50efc90207 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -5686,7 +5686,11 @@ class CGInterfaceTrait(CGThing): yield name, arguments, rettype def fmt(arguments): - return "".join(", %s: %s" % argument for argument in arguments) + keywords = {"async"} + return "".join( + ", %s: %s" % (name if name not in keywords else "r#" + name, type_) + for name, type_ in arguments + ) def contains_unsafe_arg(arguments): if not arguments or len(arguments) == 0: @@ -6250,7 +6254,7 @@ class CGDictionary(CGThing): d = self.dictionary if d.parent: initParent = ("{\n" - " match try!(%s::%s::new(cx, val)) {\n" + " match r#try!(%s::%s::new(cx, val)) {\n" " ConversionResult::Success(v) => v,\n" " ConversionResult::Failure(error) => {\n" " throw_type_error(cx, &error);\n" @@ -6396,7 +6400,7 @@ class CGDictionary(CGThing): conversion = ( "{\n" " rooted!(in(cx) let mut rval = UndefinedValue());\n" - " match try!(get_dictionary_property(cx, object.handle(), \"%s\", rval.handle_mut())) {\n" + " match r#try!(get_dictionary_property(cx, object.handle(), \"%s\", rval.handle_mut())) {\n" " true => {\n" "%s\n" " },\n" @@ -7167,7 +7171,7 @@ class CallbackOperationBase(CallbackMethod): "methodName": self.methodName } getCallableFromProp = string.Template( - 'try!(self.parent.get_callable_property(cx, "${methodName}"))' + 'r#try!(self.parent.get_callable_property(cx, "${methodName}"))' ).substitute(replacements) if not self.singleOperation: return 'rooted!(in(cx) let callable =\n' + getCallableFromProp + ');\n' diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs index 20dd3d0e91e..9e06a707fa3 100644 --- a/components/script/dom/globalscope.rs +++ b/components/script/dom/globalscope.rs @@ -53,7 +53,7 @@ use js::rust::wrappers::Evaluate2; use libc; use msg::constellation_msg::PipelineId; use net_traits::{CoreResourceThread, ResourceThreads, IpcSend}; -use profile_traits::{mem, time}; +use profile_traits::{mem as profile_mem, time as profile_time}; use script_traits::{MsDuration, ScriptToConstellationChan, TimerEvent}; use script_traits::{TimerEventId, TimerSchedulerMsg, TimerSource}; use servo_url::{MutableOrigin, ServoUrl}; @@ -97,11 +97,11 @@ pub struct GlobalScope { /// For sending messages to the memory profiler. #[ignore_malloc_size_of = "channels are hard"] - mem_profiler_chan: mem::ProfilerChan, + mem_profiler_chan: profile_mem::ProfilerChan, /// For sending messages to the time profiler. #[ignore_malloc_size_of = "channels are hard"] - time_profiler_chan: time::ProfilerChan, + time_profiler_chan: profile_time::ProfilerChan, /// A handle for communicating messages to the constellation thread. #[ignore_malloc_size_of = "channels are hard"] @@ -160,8 +160,8 @@ impl GlobalScope { pub fn new_inherited( pipeline_id: PipelineId, devtools_chan: Option>, - mem_profiler_chan: mem::ProfilerChan, - time_profiler_chan: time::ProfilerChan, + mem_profiler_chan: profile_mem::ProfilerChan, + time_profiler_chan: profile_time::ProfilerChan, script_to_constellation_chan: ScriptToConstellationChan, scheduler_chan: IpcSender, resource_threads: ResourceThreads, @@ -337,12 +337,12 @@ impl GlobalScope { } /// Get a sender to the memory profiler thread. - pub fn mem_profiler_chan(&self) -> &mem::ProfilerChan { + pub fn mem_profiler_chan(&self) -> &profile_mem::ProfilerChan { &self.mem_profiler_chan } /// Get a sender to the time profiler thread. - pub fn time_profiler_chan(&self) -> &time::ProfilerChan { + pub fn time_profiler_chan(&self) -> &profile_time::ProfilerChan { &self.time_profiler_chan } @@ -513,17 +513,17 @@ impl GlobalScope { rval: MutableHandleValue, line_number: u32, ) -> bool { - let metadata = time::TimerMetadata { + let metadata = profile_time::TimerMetadata { url: if filename.is_empty() { self.get_url().as_str().into() } else { filename.into() }, - iframe: time::TimerMetadataFrameType::RootWindow, - incremental: time::TimerMetadataReflowType::FirstReflow, + iframe: profile_time::TimerMetadataFrameType::RootWindow, + incremental: profile_time::TimerMetadataReflowType::FirstReflow, }; - time::profile( - time::ProfilerCategory::ScriptEvaluate, + profile_time::profile( + profile_time::ProfilerCategory::ScriptEvaluate, Some(metadata), self.time_profiler_chan().clone(), || { diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 18fdff8d777..1837b512f85 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -99,8 +99,8 @@ use net_traits::{Metadata, NetworkError, ReferrerPolicy, ResourceThreads}; use net_traits::image_cache::{ImageCache, PendingImageResponse}; use net_traits::request::{CredentialsMode, Destination, RedirectMode, RequestInit}; use net_traits::storage_thread::StorageType; -use profile_traits::mem::{self, OpaqueSender, ReportsChan}; -use profile_traits::time::{self, ProfilerCategory, profile}; +use profile_traits::mem::{self as profile_mem, OpaqueSender, ReportsChan}; +use profile_traits::time::{self as profile_time, ProfilerCategory, profile}; use script_layout_interface::message::{self, Msg, NewLayoutThreadInfo, ReflowGoal}; use script_traits::{CompositorEvent, ConstellationControlMsg}; use script_traits::{DiscardBrowsingContext, DocumentActivity, EventResult}; @@ -538,10 +538,10 @@ pub struct ScriptThread { /// The channel on which the image cache can send messages to ourself. image_cache_channel: Sender, /// For providing contact with the time profiler. - time_profiler_chan: time::ProfilerChan, + time_profiler_chan: profile_time::ProfilerChan, /// For providing contact with the memory profiler. - mem_profiler_chan: mem::ProfilerChan, + mem_profiler_chan: profile_mem::ProfilerChan, /// For providing instructions to an optional devtools server. devtools_chan: Option>, diff --git a/components/script_layout_interface/Cargo.toml b/components/script_layout_interface/Cargo.toml index 94e961bd009..b41b501138f 100644 --- a/components/script_layout_interface/Cargo.toml +++ b/components/script_layout_interface/Cargo.toml @@ -3,6 +3,7 @@ name = "script_layout_interface" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/script_traits/Cargo.toml b/components/script_traits/Cargo.toml index 3656990aafe..250c14aa977 100644 --- a/components/script_traits/Cargo.toml +++ b/components/script_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "script_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml index db1a2afb268..c7be421f17c 100644 --- a/components/servo/Cargo.toml +++ b/components/servo/Cargo.toml @@ -4,6 +4,7 @@ name = "libservo" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/url/Cargo.toml b/components/url/Cargo.toml index 46aee70b733..2b0463bd56f 100644 --- a/components/url/Cargo.toml +++ b/components/url/Cargo.toml @@ -3,6 +3,7 @@ name = "servo_url" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/webdriver_server/Cargo.toml b/components/webdriver_server/Cargo.toml index 18d13d309df..f3323385566 100644 --- a/components/webdriver_server/Cargo.toml +++ b/components/webdriver_server/Cargo.toml @@ -3,6 +3,7 @@ name = "webdriver_server" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/webvr/Cargo.toml b/components/webvr/Cargo.toml index b2b3791b725..e42f65cfcaf 100644 --- a/components/webvr/Cargo.toml +++ b/components/webvr/Cargo.toml @@ -3,6 +3,7 @@ name = "webvr" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/components/webvr_traits/Cargo.toml b/components/webvr_traits/Cargo.toml index 4451ccd369a..614e104d5c3 100644 --- a/components/webvr_traits/Cargo.toml +++ b/components/webvr_traits/Cargo.toml @@ -3,6 +3,7 @@ name = "webvr_traits" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/ports/libmlservo/Cargo.toml b/ports/libmlservo/Cargo.toml index 793435db093..7d5d8e1037c 100644 --- a/ports/libmlservo/Cargo.toml +++ b/ports/libmlservo/Cargo.toml @@ -3,6 +3,7 @@ name = "libmlservo" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/ports/libsimpleservo/Cargo.toml b/ports/libsimpleservo/Cargo.toml index 5af57fe8e69..60e8c0596e7 100644 --- a/ports/libsimpleservo/Cargo.toml +++ b/ports/libsimpleservo/Cargo.toml @@ -4,6 +4,7 @@ version = "0.0.1" build = "build.rs" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" publish = false [lib] diff --git a/ports/servo/Cargo.toml b/ports/servo/Cargo.toml index 094221c62fb..61f31834cba 100644 --- a/ports/servo/Cargo.toml +++ b/ports/servo/Cargo.toml @@ -4,6 +4,7 @@ name = "servo" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" build = "build.rs" publish = false diff --git a/support/rust-task_info/Cargo.toml b/support/rust-task_info/Cargo.toml index ea6852ffb3e..2286cc5ccaa 100644 --- a/support/rust-task_info/Cargo.toml +++ b/support/rust-task_info/Cargo.toml @@ -4,6 +4,7 @@ name = "task_info" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" build = "build.rs" diff --git a/tests/unit/deny_public_fields/Cargo.toml b/tests/unit/deny_public_fields/Cargo.toml index 679069d2c1b..1fab23f0f8a 100644 --- a/tests/unit/deny_public_fields/Cargo.toml +++ b/tests/unit/deny_public_fields/Cargo.toml @@ -3,6 +3,7 @@ name = "deny_public_fields_tests" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" [lib] path = "lib.rs" diff --git a/tests/unit/malloc_size_of/Cargo.toml b/tests/unit/malloc_size_of/Cargo.toml index 80668d5ba61..049c750972f 100644 --- a/tests/unit/malloc_size_of/Cargo.toml +++ b/tests/unit/malloc_size_of/Cargo.toml @@ -3,6 +3,7 @@ name = "malloc_size_of_tests" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" [lib] path = "lib.rs" diff --git a/tests/unit/metrics/Cargo.toml b/tests/unit/metrics/Cargo.toml index 7a4636345d7..23db807945d 100644 --- a/tests/unit/metrics/Cargo.toml +++ b/tests/unit/metrics/Cargo.toml @@ -3,6 +3,7 @@ name = "metrics_tests" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" [lib] name = "metrics_tests" diff --git a/tests/unit/profile/Cargo.toml b/tests/unit/profile/Cargo.toml index 707941e4846..9e608a7c3ce 100644 --- a/tests/unit/profile/Cargo.toml +++ b/tests/unit/profile/Cargo.toml @@ -3,6 +3,7 @@ name = "profile_tests" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" [lib] name = "profile_tests" diff --git a/tests/unit/script/Cargo.toml b/tests/unit/script/Cargo.toml index 4a5d7f346b9..a59179ce3e5 100644 --- a/tests/unit/script/Cargo.toml +++ b/tests/unit/script/Cargo.toml @@ -3,6 +3,7 @@ name = "script_tests" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" [lib] name = "script_tests" diff --git a/tests/unit/script_plugins/Cargo.toml b/tests/unit/script_plugins/Cargo.toml index 8a41b62aa8f..309440a9466 100644 --- a/tests/unit/script_plugins/Cargo.toml +++ b/tests/unit/script_plugins/Cargo.toml @@ -3,6 +3,7 @@ name = "script_plugins_tests" version = "0.0.1" authors = ["The Servo Project Developers"] license = "MPL-2.0" +edition = "2018" [lib] path = "lib.rs"