Commit Graph

139 Commits

Author SHA1 Message Date
openharmony_ci
f6121a0452
!3 【轻量级 PR】:修改lazycell版本号为1.2.1
Merge pull request !3 from 李可/N/A
2024-07-04 08:17:07 +00:00
李可
eca8a6decd
update README.OpenSource.
Signed-off-by: 李可 <like115@huawei.com>
2024-07-04 06:43:10 +00:00
openharmony_ci
8f1d347877
!2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:10:24 +00:00
fangting
01df45ad03 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:14:55 +08:00
openharmony_ci
79b3d4b1b4
!1 [lazycell]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:33:51 +00:00
lubinglun
081d4c7018 Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:26:17 +08:00
Nikita Pekin
db9289a32d chore: cut 1.2.0 release 2018-12-03 19:18:37 -05:00
David Halperin
30fe4a8f56 feat: Implement Clone for LazyCell and AtomicLazyCell 2018-12-03 18:58:37 -05:00
Nikita Pekin
f63f7b70d4 chore: cut 1.1 release
Update CHANGELOG.md.
Update the version to 1.2 in the README.md and in the Cargo.toml.
2018-09-19 13:33:05 -04:00
Nikita Pekin
48fd255d20 chore: add Alex Crichton to list of contributors 2018-09-19 13:33:05 -04:00
Alex Crichton
a63ffb9040
feat: add LazyCell::replace for infallible access
This differs from other functions that it requires `&mut self` but if you've
locally got access to `&mut self` in code it's often quite handy to take
advantage of such privileged access!
2018-09-19 13:00:50 -04:00
Nikita Pekin
a66d5923e9 chore: cut the 1.0.0 release 2018-09-10 18:59:12 -04:00
Nikita Pekin
2d66c6b6ea chore: bump minimum rustc version 2018-09-10 18:58:54 -04:00
Nikita Pekin
d881d3976d
chore: add sagebind to CONTRIBUTORS.md 2018-09-10 18:35:15 -04:00
Nikita Pekin
462b852ee7
chore: bump minimum rustc version to 1.20 2018-09-10 18:34:00 -04:00
Stephen M. Coakley
31aff0dacf
impr: add NONE constant for an empty AtomicLazyCell
Add an associated constant for an empty `AtomicLazyCell`.
This is useful in statics and in other places requiring const expressions.

Closes #87.
2018-09-10 18:33:48 -04:00
David Herman
fdc6d268f0
impr: add LazyCell::borrow_mut_with and LazyCell::try_borrow_mut_with
* Closes #79
* Closes #80
2018-09-10 18:21:15 -04:00
Nikita Pekin
9d634d1fd9
docs: add note regarding LazyCell::borrow_mut
Add a notice in the documentation stating that `LazyCell::borrow_mut`
allows the mutation of the inner contents.
2018-09-10 17:58:53 -04:00
David Herman
b807802946
docs: describe mutability more consistently
Closes #78.
2018-09-10 17:58:50 -04:00
Nikita Pekin
f037929fcb chore: cut the 0.6.0 release
Update CHANGELOG.
Update README.
Cut the 0.6.0 release.
2018-06-06 19:50:51 -04:00
est31
94a507cc8e chore: add myself as contributor 2018-06-05 20:02:28 -04:00
est31
e59f6b5531 feat: Add #![no_std]
This crate uses nothing from the std crate that's not already
present in libcore. Therefore, add a #![no_std] mode.
2018-06-05 20:02:28 -04:00
Ossi Herrala
343cf44d17 chore: update CONTRIBUTORS.md 2018-04-19 13:46:38 -04:00
Ossi Herrala
7a9fc3bf47 style: allow unsafe code around UnsafeCell::into_inner() call
Rust 1.25 changed UnsafeCell::into_inner() from unsafe to safe
function. This unsafe can be removed when supporting Rust older than
1.25 is not needed.
2018-04-19 13:46:38 -04:00
Ossi Herrala
31940dfd26 style: remove unnecessary mut and unsafe keywords
Compiler nagged about these. Remove it to please the compiler.
2018-04-19 13:46:38 -04:00
Nikita Pekin
8e19f50c16 chore: cut the 0.5.1 release
Update CHANGELOG.
Update README.
Cut the 0.5.1 release.
2017-11-25 13:00:38 -05:00
Nikita Pekin
71bc50880c feat: add Default derives
Add Default derive for LazyCell and AtomicLazyCell.
2017-11-25 12:48:40 -05:00
Nikita Pekin
06650bf3bc style: remove redundant pattern matching
Remove redundant `if let Err(_)` pattern matching with `is_err()` checks
instead.
2017-11-25 12:48:40 -05:00
Nikita Pekin
668bb2fa97 impr: add T: Send for AtomicLazyCell Sync impl
Add a `T: Send` to the existing `T: Sync` restriction on the `AtomicLazyCell`
`Sync` impl.
This is necessary because filling an `AtomicLazyCell` only requires a reference
to the cell (i.e. `&AtomicLazyCell`), which means that an empty
`&AtomicLazyCell<T>` can be passed to a child thread (provided that
`AtomicLazyCell<T>: Sync` is satisfied), and filled on the child thread.
The filled value would then be on the stack of, and destroyed by, the
parent thread.

Kudos to dbaupp on Reddit for this recommendation.

Closes #67.
BREAKING CHANGE: the `AtomicLazyCell` `Sync` impl now has a `<T: Sync + Send>`
    constraint instead of a `<T: Sync>` constraint.

    To migrate your code, remove any `AtomicLazyCell<T>` instances where
    `<T: Sync + !Send>`, as this usecase is no longer supported.
2017-11-25 12:48:40 -05:00
Aleksey Kladov
bb512474d3 chore: Aleksey Kladov to CONTRIBUTORS.md 2017-11-24 16:19:26 -05:00
Aleksey Kladov
d1f46bef9d fix: fix soundness hole in borrow_with
closes #66
2017-11-24 16:19:26 -05:00
Aleksey Kladov
bffa402896 feat: add LazyCell::try_borrow_with 2017-11-24 16:19:26 -05:00
Nikita Pekin
b04ef030e2 chore: increment minimum rustc version
Increment the minimum rustc version to support the carrier trait ("?").
2017-11-24 09:41:18 -05:00
Aleksey Kladov
fd419dea96 feat: add LazyCell::borrow_mut method 2017-11-24 09:25:33 -05:00
Nikita Pekin
2fb5278a57 Merge pull request #71 from indiv0/cut-release
Cut the 0.5.0 release
2017-03-23 23:16:27 -04:00
Nikita Pekin
c6fafc5398
chore: cut the 0.5.0 release
Cut the 0.5.0 release.
Update the version in `Cargo.toml`.
Update `CHANGELOG.md`.
2017-03-23 23:11:46 -04:00
Jack O'Connor
9da0a5a2ff
impr: derive Debug impls
Derive `Debug` impls for the `LazyCell` and `AtomicLazyCell` structs.
2017-03-23 23:06:27 -04:00
Nikita Pekin
cd71973399 Merge pull request #70 from indiv0/update-rustc
Update minimum rustc version
2017-03-23 17:47:31 -04:00
Nikita Pekin
c06b0630ab
chore: update minimum rustc version
Update minimum rustc version.
2017-03-23 17:37:19 -04:00
Nikita Pekin
3863f86d0b Merge pull request #65 from novacrazy/master
Add get method for Copy types
2017-02-23 19:28:43 -05:00
Aaron Trent
761d11e890 chore: Add Aaron Trent to CONTRIBUTORS.md 2017-02-23 18:25:36 -06:00
Aaron Trent
dc8f820988 feat: Add get method for Copy types 2017-02-23 18:09:51 -06:00
Nikita Pekin
cac11a4d03 Merge pull request #64 from indiv0/chore-contribution
Update contribution guidelines and fix minor issues
2017-02-23 13:48:55 -05:00
Nikita Pekin
d88b2de8d3
chore: add copyright & contribution info
Add information on updating copyright dates and the `CONTRIBUTORS.md` to the
`CONTRIBUTING.md`.

Closes #63.
2017-02-23 13:42:02 -05:00
Nikita Pekin
daf92fb69d
chore: update copyright dates
Update copyright dates to include 2017 where necessary.

Closes #61.
2017-02-23 13:41:51 -05:00
Nikita Pekin
23fee24987
chore: add oconnor663 to contributors
Add oconnor663 to `CONTRIBUTORS.md` list.

Closes #62.
2017-02-23 13:41:24 -05:00
Nikita Pekin
708d887454 Merge pull request #60 from oconnor663/master
docs: fix missing backticks
2017-02-23 09:21:45 -05:00
Jack O'Connor
44bafaaf93 docs: fix missing backticks 2017-02-21 23:41:37 -05:00
Nikita Pekin
8ef2e9c2f1 Merge pull request #59 from indiv0/dev
Various cleanups and fixes
2017-02-17 15:11:50 -05:00
Nikita Pekin
1efeb0a7f1
chore: remove appveyor CI support
Remove support for Appveyor CI.
Disable Windows builds badge in README.md.
2017-02-17 14:15:56 -05:00