mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
… and use remaining unstable features unconditionally. This doesn’t actually change the set of crates that can build on the Stable channel.
29 lines
932 B
Rust
29 lines
932 B
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 https://mozilla.org/MPL/2.0/. */
|
|
|
|
//! The `servo` test application.
|
|
//!
|
|
//! Creates a `Servo` instance with a simple implementation of
|
|
//! the compositor's `WindowMethods` to create a working web browser.
|
|
//!
|
|
//! This browser's implementation of `WindowMethods` is built on top
|
|
//! of [glutin], the cross-platform OpenGL utility and windowing
|
|
//! library.
|
|
//!
|
|
//! For the engine itself look next door in `components/servo/lib.rs`.
|
|
//!
|
|
//! [glutin]: https://github.com/tomaka/glutin
|
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
#[cfg(not(target_os = "android"))]
|
|
include!("main2.rs");
|
|
|
|
#[cfg(target_os = "android")]
|
|
pub fn main() {
|
|
println!(
|
|
"Cannot start /ports/servo/ on Android. \
|
|
Use /support/android/apk/ + /ports/libsimpleservo/ instead"
|
|
);
|
|
}
|