mirror of
https://github.com/tauri-apps/javascriptcore-rs.git
synced 2026-01-31 00:35:17 +01:00
Update to gtk-rs level
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
authors = ["Antoni Boucher <bouanto@zoho.com>"]
|
||||
authors = ["The Gtk-rs Project Developers"]
|
||||
name = "javascriptcore"
|
||||
version = "0.1.0"
|
||||
|
||||
@@ -8,5 +8,5 @@ git = "https://github.com/gtk-rs/glib"
|
||||
version = "^0.1.3"
|
||||
|
||||
[dependencies.javascriptcore-sys]
|
||||
git = "https://github.com/antoyo/javascriptcore-rs"
|
||||
git = "https://github.com/guillaumegomez/javascriptcore-rs"
|
||||
version = "0.1.0"
|
||||
|
||||
28
LICENSE
28
LICENSE
@@ -1,18 +1,22 @@
|
||||
Copyright (c) 2016 Boucher, Antoni <bouanto@zoho.com>
|
||||
The MIT License (MIT)
|
||||
|
||||
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:
|
||||
Copyright (c) 2013-2017, The Gtk-rs Project Developers.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
|
||||
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# gtk [](https://travis-ci.org/gtk-rs/javascriptcore-rs) [](https://gitter.im/gtk-rs/javascriptcore-rs)
|
||||
|
||||
[Project site](http://gtk-rs.org/) | [Online documentation](http://gtk-rs.org/docs/)
|
||||
|
||||
__Rust__ bindings and wrappers for __javascriptcore__.
|
||||
|
||||
## Using
|
||||
|
||||
We recommend using [crates from crates.io](https://crates.io/keywords/gtk-rs),
|
||||
as [demonstrated here](http://gtk-rs.org/#using).
|
||||
|
||||
If you want to track the bleeding edge, use the git dependency instead:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
javascriptcore-rs = { git = "https://github.com/gtk-rs/javascriptcore-rs.git" }
|
||||
```
|
||||
|
||||
Avoid mixing versioned and git crates like this:
|
||||
|
||||
```toml
|
||||
# This will not compile
|
||||
[dependencies]
|
||||
gtk = "0.2"
|
||||
javascriptcore-rs = { git = "https://github.com/gtk-rs/javascriptcore-rs.git" }
|
||||
```
|
||||
|
||||
## Contribute
|
||||
|
||||
Contributor you're welcome!
|
||||
|
||||
## License
|
||||
|
||||
__javascriptcore-rs__ is available under the MIT License, please refer to it.
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "javascriptcore-sys"
|
||||
version = "0.1.0"
|
||||
authors = ["Antoni Boucher <bouanto@zoho.com>"]
|
||||
authors = ["The Gtk-rs Project Developers"]
|
||||
|
||||
[dependencies]
|
||||
libc = "^0.2"
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
Copyright (c) 2016 Boucher, Antoni <bouanto@zoho.com>
|
||||
The MIT License (MIT)
|
||||
|
||||
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:
|
||||
Copyright (c) 2013-2017, The Gtk-rs Project Developers.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
|
||||
@@ -1,23 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2016 Boucher, Antoni <bouanto@zoho.com>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2013-2017, The Gtk-rs Project Developers.
|
||||
// See the COPYRIGHT file at the top-level directory of this distribution.
|
||||
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
||||
29
src/lib.rs
29
src/lib.rs
@@ -1,23 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2016 Boucher, Antoni <bouanto@zoho.com>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2013-2017, The Gtk-rs Project Developers.
|
||||
// See the COPYRIGHT file at the top-level directory of this distribution.
|
||||
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
|
||||
|
||||
extern crate glib;
|
||||
extern crate javascriptcore_sys;
|
||||
@@ -25,7 +8,11 @@ extern crate javascriptcore_sys;
|
||||
use std::ptr;
|
||||
|
||||
use glib::translate::{FromGlibPtrFull, FromGlibPtrNone};
|
||||
use javascriptcore_sys::{JSGlobalContextRef, JSValueRef, JSValueIsArray, JSValueIsDate, JSValueIsBoolean, JSValueIsNull, JSValueIsNumber, JSValueIsObject, JSValueIsString, JSValueIsUndefined, JSValueToBoolean, JSValueToNumber};
|
||||
use javascriptcore_sys::{
|
||||
JSGlobalContextRef, JSValueRef, JSValueIsArray, JSValueIsDate, JSValueIsBoolean, JSValueIsNull,
|
||||
JSValueIsNumber, JSValueIsObject, JSValueIsString, JSValueIsUndefined, JSValueToBoolean,
|
||||
JSValueToNumber
|
||||
};
|
||||
|
||||
pub struct GlobalContext {
|
||||
raw: JSGlobalContextRef,
|
||||
|
||||
Reference in New Issue
Block a user