Commit Graph

615 Commits

Author SHA1 Message Date
Nikolay Kim 3ab5e4526c add weakref support #56 2017-07-24 13:03:18 -07:00
Nikolay Kim ce15dda5b6 Allow to add gc support without implementing PyGCProtocol #57 2017-07-24 12:19:05 -07:00
Nikolay Kim 4b0a8f5019 Update README.md 2017-07-23 16:28:13 -07:00
Nikolay Kim 7b5fc4b655 Update README.md 2017-07-23 16:27:04 -07:00
Nikolay Kim 3e5fadf373 bump to dev 2017-07-23 11:37:44 -07:00
Nikolay Kim 78b826e119 fix doc link 2017-07-23 11:36:26 -07:00
Nikolay Kim 01ab0f828a fix license name 2017-07-23 11:24:39 -07:00
Nikolay Kim 5a386ebb42 prepare release 2017-07-23 11:17:10 -07:00
Nikolay Kim 60b49d15c1 explicit version 2017-07-23 11:11:38 -07:00
Nikolay Kim a7b3abff61 add version 2017-07-23 11:09:59 -07:00
Nikolay Kim 9aa05daf08 fix name 2017-07-23 10:54:52 -07:00
Nikolay Kim 05e847f665 Merge pull request #53 from messense/feature/word-count-example
Add a word count example
2017-07-23 10:52:19 -07:00
Nikolay Kim 4b254a72f5 Merge pull request #54 from messense/feature/dict-iter
Add PyDict::iter
2017-07-23 10:52:07 -07:00
Nikolay Kim e31557dd33 some docs 2017-07-23 10:51:30 -07:00
Nikolay Kim ba86596be1 prefix generated names with _ 2017-07-23 10:07:23 -07:00
messense 1834ec4a33
Add PyDict::iter 2017-07-23 22:46:04 +08:00
messense 54a87aacdf
Add a word count example 2017-07-23 13:32:18 +08:00
Nikolay Kim 40d34ca59d remove tarpaulin 2017-07-21 14:35:24 -07:00
Nikolay Kim fcb20c6f25 try tarpaulin 2017-07-21 14:05:09 -07:00
Nikolay Kim eed2cb7307 fix modul init fn for python2 2017-07-21 13:13:58 -07:00
Nikolay Kim da2db1eb2f bump min version 2017-07-21 12:55:47 -07:00
Nikolay Kim 98bdf63a4d use const_fn for type size and offset calculation 2017-07-21 09:48:48 -07:00
Nikolay Kim 2ee6419464 do not catch rust panics 2017-07-20 14:21:57 -07:00
Nikolay Kim 5f1a410d6e more cleanups 2017-07-20 09:11:28 -07:00
Nikolay Kim 0756e341a8 cleanup PyModule 2017-07-20 08:33:30 -07:00
Nikolay Kim a00ae1757c add PyDict keys,values,items methods 2017-07-20 08:23:43 -07:00
Nikolay Kim 97c6b7591a added PyList::append method, added refcnt tests 2017-07-20 08:05:12 -07:00
Nikolay Kim e23c7247e6 fix memory leak in PyList::set_item and insert_item 2017-07-19 22:22:19 -07:00
Nikolay Kim 1035aaae49 fix python2 related code 2017-07-19 13:22:26 -07:00
Nikolay Kim 13820f4ce3 added PyTuple::slice and PyTuple::split_from methods 2017-07-19 13:04:58 -07:00
Nikolay Kim f344c4ce3d added try downcast methods to PyDowncastFrom trait 2017-07-19 13:01:59 -07:00
Nikolay Kim 9cecfc0ec9 fix fn names 2017-07-19 09:27:19 -07:00
Nikolay Kim 63baa575a6 fix memory leak in call and call_method 2017-07-19 09:22:54 -07:00
Nikolay Kim 5559dbb9ed fix memory leak 2017-07-19 06:35:59 -07:00
Nikolay Kim c6067b90c1 more docs 2017-07-18 14:15:44 -07:00
Nikolay Kim 01d688fc98 use better name for Pointers 2017-07-18 11:12:35 -07:00
Nikolay Kim 69963d75ec fix mod name 2017-07-18 10:53:02 -07:00
Nikolay Kim fc1df289bd drop PyClone trait; doc cleanups 2017-07-18 10:13:50 -07:00
messense dd29dbce80 Use std::ptr::null() and std::ptr::null_mut() (#51) 2017-07-18 23:23:21 +08:00
messense 512bd6a332
Drop a reference does nothing
https://doc.rust-lang.org/std/mem/fn.drop.html

> This function is not magic; it is literally defined as
> pub fn drop<T>(_x: T) { }
> Because _x is moved into the function, it is automatically dropped before the function returns.

warning: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
   --> tests/test_class.rs:471:9
    |
471 |         drop(inst);
    |         ^^^^^^^^^^
    |
    = note: #[warn(drop_ref)] on by default
note: argument has type &GCIntegration
   --> tests/test_class.rs:471:14
    |
471 |         drop(inst);
    |              ^^^^
    = help: for further information visit
    https://github.com/Manishearth/rust-clippy/wiki#drop_ref
2017-07-18 22:35:05 +08:00
messense 39a78aa407
Use is_null() to check whether a ptr is null 2017-07-18 22:32:31 +08:00
messense ae40a30243
Fix assign_op_pattern warning
https://github.com/Manishearth/rust-clippy/wiki#assign_op_pattern
2017-07-18 22:25:18 +08:00
messense 5a8fd2febc
Some more clippy warning fixes
[rustfix](https://github.com/killercup/rustfix) makes it much easier.
2017-07-18 22:10:56 +08:00
messense e69163344a Fix some clippy warnings (#49) 2017-07-18 19:28:49 +08:00
messense 6bbf3d7595 Add rustc version check in build script (#47)
* Add rustc version check in build script

* Update rustc requirement in README.md
2017-07-18 09:33:27 +08:00
Nikolay Kim 2d06b07717 fix PyNumberProtocol methods #48 2017-07-17 16:49:19 -07:00
Nikolay Kim 149aa3a0eb always inline all py() 2017-07-14 16:21:18 -07:00
Nikolay Kim 292bd2c139 inline py() call 2017-07-14 14:21:07 -07:00
Nikolay Kim 4daac50781 remove associated_consts feature 2017-07-14 03:17:57 -07:00
Nikolay Kim c5f5620f77 rename token() to py() 2017-07-13 19:04:00 -07:00