mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
817c7746be
This is a rebase of #17325 with `[replace]` entries removed, a bunch more dependencies updated, and some more compile fixes. Original work by @Eijebong, thanks a lot! Source-Repo: https://github.com/servo/servo Source-Revision: 66c130d55aa0d7af1104c00e93a5bf950f23a383 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 323361580a540d8b296f6f7d77f20d46cbdc5c73
35 lines
1.0 KiB
Rust
35 lines
1.0 KiB
Rust
/* 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/. */
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
#[cfg(target_os = "android")]
|
|
extern crate android_injected_glue;
|
|
extern crate euclid;
|
|
extern crate getopts;
|
|
#[macro_use] extern crate lazy_static;
|
|
#[macro_use] extern crate log;
|
|
extern crate num_cpus;
|
|
extern crate rustc_serialize;
|
|
#[macro_use] extern crate serde;
|
|
extern crate servo_geometry;
|
|
extern crate servo_url;
|
|
extern crate url;
|
|
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
|
|
extern crate xdg;
|
|
|
|
pub mod basedir;
|
|
#[allow(unsafe_code)] pub mod opts;
|
|
pub mod prefs;
|
|
pub mod resource_files;
|
|
|
|
pub fn servo_version() -> String {
|
|
let cargo_version = env!("CARGO_PKG_VERSION");
|
|
let git_info = option_env!("GIT_INFO");
|
|
match git_info {
|
|
Some(info) => format!("Servo {}{}", cargo_version, info),
|
|
None => format!("Servo {}", cargo_version),
|
|
}
|
|
}
|