Ryan Dahl
cc1720132a
Move resource_table from deno::State to deno_core::Isolate ( #4834 )
2020-04-21 09:48:44 -04:00
Ryan Dahl
6e5f3453f8
Remove core/plugin.rs ( #4824 )
...
This simplifies the plugin interface in order to deliver op crates with a similar API
2020-04-20 10:27:15 -04:00
Ryan Dahl
c1ec042a00
Modify op dispatcher to include &mut Isolate argument ( #4821 )
...
- Removes unnecessary RwLock and Rc around the op registry table
- Preparation to move resource_table to deno_core::Isolate.
- Towards #3453 , #4222
2020-04-19 23:54:46 -04:00
Ryan Dahl
91b606aaae
Clean up how we use opIds ( #4118 )
2020-02-25 09:14:27 -05:00
Bartek Iwańczuk
4e1abb4f3a
refactor: use OpError instead of ErrBox for errors in ops ( #4058 )
...
To better reflect changes in error types in JS from #3662 this PR changes
default error type used in ops from "ErrBox" to "OpError".
"OpError" is a type that can be sent over to JSON; it has all
information needed to construct error in JavaScript. That
made "GetErrorKind" trait useless and so it was removed altogether.
To provide compatibility with previous use of "ErrBox" an implementation of
"From<ErrBox> for OpError" was added, however, it is an escape hatch and
ops implementors should strive to use "OpError" directly.
2020-02-23 14:51:29 -05:00
Bartek Iwańczuk
a0f015b1a3
refactor: replace Arc<Box<..>> with Rc<..> ( #3996 )
2020-02-15 01:18:36 +01:00
Bartek Iwańczuk
cdba5ab6fc
refactor: rename ThreadSafeState, use RefCell for mutable state ( #3931 )
...
* rename ThreadSafeState to State
* State stores InnerState wrapped in Rc and RefCell
2020-02-08 20:34:31 +01:00
Bert Belder
25467aa7c7
Add blanket impl for the 'Resource' trait ( #3903 )
2020-02-07 17:18:28 -08:00
Ryan Dahl
5e32c5ea44
s/PinnedBuf/ZeroCopyBuf ( #3782 )
2020-01-24 15:10:49 -05:00
Nayeem Rahman
7f80f9db3f
refactor: Improve path handling in permission checks ( #3714 )
2020-01-20 09:45:44 -05:00
Ry Dahl
76e44ddfd0
Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' ( #3600 )
2020-01-05 11:56:18 -05:00
Axetroy
3bb15ceaea
Upgrades rust to 1.40.0 ( #3542 )
2019-12-23 09:59:44 -05:00
Luca Casonato
7144bbed34
fix: plugin ops should change op count metrics ( #3455 )
2019-12-08 04:09:09 +08:00
Andy Finch
7c3b9b4f4f
feat: first pass at native plugins ( #3372 )
2019-12-05 15:30:20 -05:00