Glean commit 864aa9a239d32bc9e3d5950f3d8eba3754f9c121
Build:
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'shellwords' | |
require 'fileutils' | |
CRATE_NAME = /--crate-name\s(\S+)\s/ | |
FEATURE_LIST = /--cfg\sfeature=(\S+)/ | |
def extract(args) |
Glean commit: fd3be8bf0c8976cf28c11925f4611c37dda0d0a5
All builds for Glean itself were done using the build.sh
script.
Sizes were evaluated using the sizes.sh
script.
diff --git i/glean-core/src/database/mod.rs w/glean-core/src/database/mod.rs | |
index 8aee03f..63f4133 100644 | |
--- i/glean-core/src/database/mod.rs | |
+++ w/glean-core/src/database/mod.rs | |
@@ -178,8 +178,8 @@ impl Database { | |
entry.insert(transform(None)); | |
} | |
Entry::Occupied(mut entry) => { | |
- let old_value = entry.get(); | |
- entry.insert(transform(Some(old_value.clone()))); |
#!/bin/bash | |
origcc=/usr/bin/cc | |
fakecc=/usr/local/bin/x86_64-unknown-linux-gnu-gcc | |
if [[ "$cmdline" =~ "x86_64-apple-darwin" ]]; then | |
exec "$origcc" "$@" | |
else | |
exec "$fakecc" "$@" | |
fi |
// -*- mode: rust -*- | |
// | |
// AUTOGENERATED BY glean_parser. DO NOT EDIT. | |
// | |
// This Source Code Form is subject to the terms of the Mozilla Public | |
// 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/. | |
#![allow(non_upper_case_globals)] |
❯ cargo run --example sample
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
Running `/Users/jrediger/mozilla/src/glean.rs/target/debug/examples/sample`
{
"bool": {
"flags.a11yEnabled": true
},
"string": {
"app.clientId": "c0ffee",
[A11Y_CONSUMERS] | |
alert_emails = ["[email protected]", "[email protected]"] | |
bug_numbers = [1382820, 1462238] | |
description = "A list of known accessibility clients that inject into Firefox process space (see https://dxr.mozilla.org/mozilla-central/source/accessible/windows/msaa/Compatibility.h)." | |
expires_in_version = "never" | |
kind = "enumerated" | |
n_values = 11 | |
record_in_processes = ["main"] | |
releaseChannelCollection = "opt-out" |
def combine(file, background, out) | |
file = File.join("/data", file) | |
background = File.join("/data", background) | |
out = File.join("/data", out) | |
cmd = "docker run --rm -ti -v $(pwd):/data r3ddox/node-pdftk pdftk #{file} background #{background} output #{out}" | |
#puts "Executing: #{cmd.inspect}" | |
`#{cmd}` | |
end | |
def pdfmerge(files, out) |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'json' | |
def die(msg) | |
$stderr.puts msg | |
exit 2 | |
end |