Skip to content

Commit

Permalink
Bug 1690469 - [remote] Reorganize Remote Agent Rust module. r=remote-…
Browse files Browse the repository at this point in the history
…protocol-reviewers,jgraham

Depends on D104159

Differential Revision: https://phabricator.services.mozilla.com/D104209
  • Loading branch information
whimboo committed Feb 5, 2021
1 parent 7cb9dcf commit c8e15bb
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 23 deletions.
15 changes: 0 additions & 15 deletions remote/Cargo.toml

This file was deleted.

4 changes: 4 additions & 0 deletions remote/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += [
"rust",
]

XPIDL_MODULE = "remote"
XPIDL_SOURCES += ["nsIRemoteAgent.idl"]

Expand Down
12 changes: 12 additions & 0 deletions remote/components/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "remote"
version = "0.1.0"

[dependencies]
http = "0.2"
libc = "0.2"
log = "0.4"
nserror = { path = "../../../xpcom/rust/nserror" }
nsstring = { path = "../../../xpcom/rust/nsstring" }
thiserror = "1"
xpcom = { path = "../../../xpcom/rust/xpcom" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion remote/lib.rs → remote/components/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ extern crate thiserror;
extern crate xpcom;

mod error;
mod handler;
mod remote_agent;
mod startup;

pub use crate::error::RemoteAgentError;
pub use crate::remote_agent::{RemoteAgent, RemoteAgentResult, DEFAULT_HOST, DEFAULT_PORT};
File renamed without changes.
1 change: 0 additions & 1 deletion remote/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

DIRS += [
"components",
"startup",
"test",
]

Expand Down
5 changes: 0 additions & 5 deletions remote/startup/mod.rs

This file was deleted.

2 changes: 1 addition & 1 deletion toolkit/library/rust/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ neqo_glue = { path = "../../../../netwerk/socket/neqo_glue" }
rlbox_lucet_sandbox = { version = "0.1.0", optional = true }
wgpu_bindings = { path = "../../../../gfx/wgpu_bindings", optional = true }
mapped_hyph = { git = "https://github.com/jfkthame/mapped_hyph.git", rev = "578d7058a638c955a597f035ce1a11049c3021d7" }
remote = { path = "../../../../remote", optional = true }
remote = { path = "../../../../remote/components/rust", optional = true }
fog_control = { path = "../../../components/glean", optional = true }
app_services_logger = { path = "../../../../services/common/app_services_logger" }
http_sfv = { path = "../../../../netwerk/base/http-sfv" }
Expand Down

0 comments on commit c8e15bb

Please sign in to comment.