Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 106 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 37 additions & 1 deletion DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ the details of which are reproduced below.
* [MIT License: want](#mit-license-want)
* [MIT License: weedle2](#mit-license-weedle2)
* [MIT License: winreg](#mit-license-winreg)
* [MIT License: xshell-venv](#mit-license-xshell-venv)
* [CC0-1.0 License: base16](#cc0-10-license-base16)
* [ISC License: libloading](#isc-license-libloading)
* [ISC License: ring](#isc-license-ring)
Expand All @@ -57,6 +58,8 @@ The following text applies to code linked from these dependencies:
[NSPR](https://hg.mozilla.org/projects/nspr),
[NSS](https://hg.mozilla.org/projects/nss),
[ece](https://github.com/mozilla/rust-ece),
[glean-build](https://github.com/mozilla/glean),
[glean-sym](https://github.com/mozilla/glean),
[hawk](https://github.com/taskcluster/rust-hawk),
[jexl-eval](https://github.com/mozilla/jexl-rs),
[jexl-parser](https://github.com/mozilla/jexl-rs),
Expand Down Expand Up @@ -484,6 +487,7 @@ The following text applies to code linked from these dependencies:
[fallible-iterator](https://github.com/sfackler/rust-fallible-iterator),
[fallible-streaming-iterator](https://github.com/sfackler/fallible-streaming-iterator),
[fastrand](https://github.com/smol-rs/fastrand),
[fd-lock](https://github.com/yoshuawuyts/fd-lock),
[ffi-support](https://github.com/mozilla/ffi-support),
[find-msvc-tools](https://github.com/rust-lang/cc-rs),
[fnv](https://github.com/servo/rust-fnv),
Expand Down Expand Up @@ -600,7 +604,9 @@ The following text applies to code linked from these dependencies:
[windows-sys](https://github.com/microsoft/windows-rs),
[windows-targets](https://github.com/microsoft/windows-rs),
[windows_x86_64_gnu](https://github.com/microsoft/windows-rs),
[windows_x86_64_msvc](https://github.com/microsoft/windows-rs)
[windows_x86_64_msvc](https://github.com/microsoft/windows-rs),
[xshell-macros](https://github.com/matklad/xshell),
[xshell](https://github.com/matklad/xshell)

```
Apache License
Expand Down Expand Up @@ -1766,6 +1772,36 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

```
-------------
## MIT License: xshell-venv

The following text applies to code linked from these dependencies:
[xshell-venv](https://github.com/badboy/xshell-venv)

```
The MIT License (MIT)

Copyright (c) 2022 Jan-Erik Rediger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

```
-------------
## CC0-1.0 License: base16
Expand Down
2 changes: 2 additions & 0 deletions components/places/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sync-guid = { path = "../support/guid", features = ["rusqlite_support", "random"
thiserror = "2"
anyhow = "1.0"
uniffi = { version = "0.31" }
glean-sym = { git = "https://github.com/mozilla/glean", rev = "0401cd87c365fd8356e5d3bb6d72a67c8940c934" }

[dev-dependencies]
error-support = { path = "../support/error", features = ["testing"] }
Expand All @@ -40,3 +41,4 @@ sql-support = { path = "../support/sql" }

[build-dependencies]
uniffi = { version = "0.31", features=["build"]}
glean-build = { git = "https://github.com/mozilla/glean", rev = "0401cd87c365fd8356e5d3bb6d72a67c8940c934" }
13 changes: 13 additions & 0 deletions components/places/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
* 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/. */

use glean_build::Builder;

fn main() {
uniffi::generate_scaffolding("./src/places.udl").unwrap();

if let Ok("android") = std::env::var("CARGO_CFG_TARGET_OS")
.as_ref()
.map(String::as_str)
{
Builder::default()
.file("metrics.yaml")
.format("rust_sym")
.generate()
.expect("Error generating Glean Rust bindings");
}
}
Loading
Loading