Next | Query returned 87 messages, browsing 1 to 10 | Previous

History of commit frequency

CVS Commit History:


   2019-01-19 13:44:08 by Ryo ONODERA | Files touched by this commit (7) | Package updated
Log message:
Update to 1.32.0

Changelog:
Version 1.32.0 (2019-01-17)
==========================

Language
--------
#### 2018 edition
- [You can now use the `?` operator in macro definitions.][56245] The `?`
  operator allows you to specify zero or one repetitions similar to the `*` and
  `+` operators.
- [Module paths with no leading keyword like `super`, `self`, or `crate`, will
  now always resolve to the item (`enum`, `struct`, etc.) available in the
  module if present, before resolving to a external crate or an item the \ 
prelude.][56759]
  E.g.
  ```rust
  enum Color { Red, Green, Blue }

  use Color::*;
  ```

#### All editions
- [You can now match against `PhantomData<T>` types.][55837]
- [You can now match against literals in macros with the `literal`
  specifier.][56072] This will match against a literal of any type.
  E.g. `1`, `'A'`, `"Hello World"`
- [Self can now be used as a constructor and pattern for unit and tuple \ 
structs.][56365] E.g.
  ```rust
  struct Point(i32, i32);

  impl Point {
      pub fn new(x: i32, y: i32) -> Self {
          Self(x, y)
      }

      pub fn is_origin(&self) -> bool {
          match self {
              Self(0, 0) => true,
              _ => false,
          }
      }
  }
  ```
- [Self can also now be used in type definitions.][56366] E.g.
  ```rust
  enum List<T>
  where
      Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
  {
      Nil,
      Cons(T, Box<Self>) // likewise here
  }
  ```
- [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
  a `impl Trait` or `dyn Trait` is returned and unused in the program.

Compiler
--------
- [The default allocator has changed from jemalloc to the default allocator on
  your system.][55238] The compiler itself on Linux & macOS will still use
  jemalloc, but programs compiled with it will use the system allocator.
- [Added the `aarch64-pc-windows-msvc` target.][55702]

Libraries
---------
- [`PathBuf` now implements `FromStr`.][55148]
- [`Box<[T]>` now implements `FromIterator<T>`.][55843]
- [The `dbg!` macro has been stabilized.][56395] This macro enables you to
  easily debug expressions in your rust program. E.g.
  ```rust
  let a = 2;
  let b = dbg!(a * 2) + 1;
  //      ^-- prints: [src/main.rs:4] a * 2 = 4
  assert_eq!(b, 5);
  ```

The following APIs are now `const` functions and can be used in a
`const` context.

- [`Cell::as_ptr`]
- [`UnsafeCell::get`]
- [`char::is_ascii`]
- [`iter::empty`]
- [`ManuallyDrop::new`]
- [`ManuallyDrop::into_inner`]
- [`RangeInclusive::start`]
- [`RangeInclusive::end`]
- [`NonNull::as_ptr`]
- [`slice::as_ptr`]
- [`str::as_ptr`]
- [`Duration::as_secs`]
- [`Duration::subsec_millis`]
- [`Duration::subsec_micros`]
- [`Duration::subsec_nanos`]
- [`CStr::as_ptr`]
- [`Ipv4Addr::is_unspecified`]
- [`Ipv6Addr::new`]
- [`Ipv6Addr::octets`]

Stabilized APIs
---------------
- [`i8::to_be_bytes`]
- [`i8::to_le_bytes`]
- [`i8::to_ne_bytes`]
- [`i8::from_be_bytes`]
- [`i8::from_le_bytes`]
- [`i8::from_ne_bytes`]
- [`i16::to_be_bytes`]
- [`i16::to_le_bytes`]
- [`i16::to_ne_bytes`]
- [`i16::from_be_bytes`]
- [`i16::from_le_bytes`]
- [`i16::from_ne_bytes`]
- [`i32::to_be_bytes`]
- [`i32::to_le_bytes`]
- [`i32::to_ne_bytes`]
- [`i32::from_be_bytes`]
- [`i32::from_le_bytes`]
- [`i32::from_ne_bytes`]
- [`i64::to_be_bytes`]
- [`i64::to_le_bytes`]
- [`i64::to_ne_bytes`]
- [`i64::from_be_bytes`]
- [`i64::from_le_bytes`]
- [`i64::from_ne_bytes`]
- [`i128::to_be_bytes`]
- [`i128::to_le_bytes`]
- [`i128::to_ne_bytes`]
- [`i128::from_be_bytes`]
- [`i128::from_le_bytes`]
- [`i128::from_ne_bytes`]
- [`isize::to_be_bytes`]
- [`isize::to_le_bytes`]
- [`isize::to_ne_bytes`]
- [`isize::from_be_bytes`]
- [`isize::from_le_bytes`]
- [`isize::from_ne_bytes`]
- [`u8::to_be_bytes`]
- [`u8::to_le_bytes`]
- [`u8::to_ne_bytes`]
- [`u8::from_be_bytes`]
- [`u8::from_le_bytes`]
- [`u8::from_ne_bytes`]
- [`u16::to_be_bytes`]
- [`u16::to_le_bytes`]
- [`u16::to_ne_bytes`]
- [`u16::from_be_bytes`]
- [`u16::from_le_bytes`]
- [`u16::from_ne_bytes`]
- [`u32::to_be_bytes`]
- [`u32::to_le_bytes`]
- [`u32::to_ne_bytes`]
- [`u32::from_be_bytes`]
- [`u32::from_le_bytes`]
- [`u32::from_ne_bytes`]
- [`u64::to_be_bytes`]
- [`u64::to_le_bytes`]
- [`u64::to_ne_bytes`]
- [`u64::from_be_bytes`]
- [`u64::from_le_bytes`]
- [`u64::from_ne_bytes`]
- [`u128::to_be_bytes`]
- [`u128::to_le_bytes`]
- [`u128::to_ne_bytes`]
- [`u128::from_be_bytes`]
- [`u128::from_le_bytes`]
- [`u128::from_ne_bytes`]
- [`usize::to_be_bytes`]
- [`usize::to_le_bytes`]
- [`usize::to_ne_bytes`]
- [`usize::from_be_bytes`]
- [`usize::from_le_bytes`]
- [`usize::from_ne_bytes`]

Cargo
-----
- [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
- [Usernames are now allowed in alt registry URLs.][cargo/6242]

Misc
----
- [`libproc_macro` has been added to the `rust-src` distribution.][55280]

Compatibility Notes
-------------------
- [The argument types for AVX's
  `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
  been changed from `*const` to `*mut` as the previous implementation
  was unsound.

[55148]: https://github.com/rust-lang/rust/pull/55148/
[55238]: https://github.com/rust-lang/rust/pull/55238/
[55280]: https://github.com/rust-lang/rust/pull/55280/
[55610]: https://github.com/rust-lang/rust/pull/55610/
[55663]: https://github.com/rust-lang/rust/pull/55663/
[55702]: https://github.com/rust-lag/rust/pull/55702/
[55837]: https://github.com/rust-lang/rust/pull/55837/
[55843]: https://github.com/rust-lang/rust/pull/55843/
[56072]: https://github.com/rust-lang/rust/pull/56072/
[56245]: https://github.com/rust-lang/rust/pull/56245/
[56365]: https:/ttps://github.com/rust-lang/rust/pull/56395/
[56759]: https://github.com/rust-lang/rust/pull/56759/
[cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
[cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
[`CStr::as_ptr`]: https://doc.rust-`Duration::as_secs`]: \ 
https://doc.rust-lang.org/std/time/stru … od.as_secs
[`Duration::subsec_micros`]: \ 
https://doc.rust-lang.org/std/time/stru … sec_micros
[`Duration::subsec_millis`]: \ 
https://doc.rust-lang.org/sct.Duration. … bsec_nanos
[`Ipv4Addr::is_unspecified`]: \ 
https://doc.rust-lang.org/std/net/struc … nspecified
[`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struc … method.new
[`Ipv6Addr::octets`]: httpw`]: \ 
https://doc.rust-lang.org/std/mem/struc … method.new
[`NonNull::as_ptr`]: \ 
https://doc.rust-lang.org/std/ptr/struc … hod.as_ptr
[`RangeInclusive::end`]: \ 
https://doc.rust-lang.org/std/ops/struc … method.end
[`RangeInclusive::start`]: \ 
https://doc.rust-lang.org/std/ops/struc … thod.start
[`UnsafeCell::get`]: \ 
https://doc.rust-lang.org/std/cell/stru … method.get
[`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive … hod.as_ptr
[`char::is_ascii`]: https://doc.rust-lang.org/std/primitive … d.is_ascii
[`i128::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`i128::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`i128::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`i128::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`i128::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`i128::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`i16::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`i16::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`i16::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`i16::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`i16::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`i16::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`i32::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`i32::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`i32::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`i32::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`i32::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`i32::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`i64::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`i64::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`i64::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`i64::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`i64::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`i64::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`i8::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`i8::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`i8::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`i8::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`i8::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`i8::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`isize::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`isize::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`isize::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`isize::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`isize::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`isize::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
[`str::as_ptr`]: https://doc.rust-lang.org/std/primitive … hod.as_ptr
[`u128::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`u128::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`u128::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`u128::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`u128::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`u128::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`u16::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`u16::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`u16::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`u16::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`u16::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`u16::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`u32::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`u32::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`u32::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`u32::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`u32::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`u32::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`u64::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`u64::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`u64::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`u64::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`u64::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`u64::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`u8::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`u8::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`u8::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`u8::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`u8::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`u8::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
[`usize::from_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_be_bytes
[`usize::from_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_le_bytes
[`usize::from_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … m_ne_bytes
[`usize::to_be_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_be_bytes
[`usize::to_le_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_le_bytes
[`usize::to_ne_bytes`]: \ 
https://doc.rust-lang.org/stable/std/pr … o_ne_bytes
   2019-01-06 00:29:40 by Tobias Nygren | Files touched by this commit (4)
Log message:
rust: add some kludges to better support NetBSD HEAD-llvm

1) bootstrap rustc adds -lgcc_s when linking
-> Dropped with a BUILDLINK_TRANSFORM

2) bootstrap rustc has shared linkage to libgcc_s.so.1
-> Until upstream changes this to static linkage, we look for
   libgcc_s.so.1 in ${FILESDIR} where the user must place it manually.

3) newly built rustc adds -lstdc++ instead of -lc++ when linking llvm
-> fixed with patch-src_librustc__llvm_build.rs

4) newly built rustc adds -lgcc_s when linking
-> fixed with patch-src_libunwind_build.rs
   2019-01-03 04:12:30 by Tobias Nygren | Files touched by this commit (1)
Log message:
rust: PYTHON_FOR_BUILD_ONLY. Bump.
   2019-01-03 02:05:46 by Tobias Nygren | Files touched by this commit (1)
Log message:
rust: builds just fine with python-3.7. Remove PYTHON_VERSIONS_ACCEPTED.
   2018-12-22 00:12:34 by Havard Eidnes | Files touched by this commit (6)
Log message:
Upgrade rust to version 1.31.1.

Pkgsrc changes:
 * Sadly, I had to reinstate the "make tar files" rust code to make
   it possible to build cross-compiled bootstrap kits.
 * Add an adjustable "BUILD_TARGET", "dist" for cross-building
   a bootstrap kit, "build" for a normal native build.
 * New bootstrap kits built for NetBSD/powerpc, NetBSD/earmv7hf,
   and NetBSD/sparc64 version 1.31.1.
 * gcc-wrap script amended to also drop -Wl,--enable-new-dtags
   (so it could be used outside pkgsrc)
 * Worked around use of AtomicU64 in release build tool (ugly band-aid patch).
   Some platforms lack support for that type and associated operations.

Upstream changes:
 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
 - [Fix broken go-to-definition in RLS][rls/1171]
 - [Fix infinite loop on hover in RLS][rls/1170]

[56562]: https://github.com/rust-lang/rust/pull/56562
[rls/1171]: https://github.com/rust-lang/rls/issues/1171
[rls/1170]: https://github.com/rust-lang/rls/pull/1170
   2018-12-15 13:41:43 by Jonathan Perkin | Files touched by this commit (2)
Log message:
rust: Restore SunOS support.
   2018-12-08 08:24:54 by Ryo ONODERA | Files touched by this commit (2) | Package updated
Log message:
Update to 1.31.0

Changelog:
Version 1.31.0 (2018-12-06)
Language

    This version marks the release of the 2018 edition of Rust.
    New lifetime elision rules now allow for eliding lifetimes in functions and \ 
impl headers. E.g. impl<'a> Reader for BufReader<'a> {} can now be \ 
impl Reader for BufReader<'_> {}. Lifetimes are still required to be \ 
defined in structs.
    You can now define and use const functions. These are currently a strict \ 
minimal subset of the const fn RFC. Refer to the language reference for what \ 
exactly is available.
    You can now use tool lints, which allow you to scope lints from external \ 
tools using attributes. E.g. #[allow(clippy::filter_map)].
    #[no_mangle] and #[export_name] attributes can now be located anywhere in a \ 
crate, not just in exported functions.
    You can now use parentheses in pattern matches.

Compiler

    Updated musl to 1.1.20

Libraries

    You can now convert num::NonZero* types to their raw equivalvents using the \ 
From trait. E.g. u8 now implements From<NonZeroU8>.
    You can now convert a &Option<T> into Option<&T> and \ 
&mut Option<T> into Option<&mut T> using the From trait.
    You can now multiply (*) a time::Duration by a u32.

Stabilized APIs

    slice::align_to
    sl

    ice::align_to_mut
    slice::chunks_exact
    slice::chunks_exact_mut
    slice::rchunks
    slice::rchunks_mut
    slice::rchunks_exact
    slice::rchunks_exact_mut
    Option::replace

Cargo

    Cargo will now download crates in parallel using HTTP/2.
    You can now rename packages in your Cargo.toml We have a guide on how to use \ 
the package key in your dependencies.
   2018-11-29 15:32:14 by Jonathan Perkin | Files touched by this commit (1) | Package updated
Log message:
rust: Ensure the bundled http-parser is used.

Trying to mix and match pkgsrc and bundled dependencies resulted in conflicts
between libgit and http-parser, such that cargo was unable to fetch indexes
from crates.io with spurious network error regarding Content-Type headers.

While here add a note about why these dependencies are currently disabled.

Bump PKGREVISION.
   2018-11-27 16:45:23 by Adam Ciarcinski | Files touched by this commit (9)
Log message:
rust: speed-up building; clean-ups

- use 'build' target for building, not 'dist'
- set jobs also for install target
- do not generate tarballs; we don't need them, but they take a lot of disk-space
- do not install 'src'
- do not generate 'install.log' nor 'uninstall.sh'
- on Darwin, use headerpad_max_install_names to be able to fix all dylibs
- make optimized bootstrap
- pkglint fixes
- get ready to depend on lang/llvm and devel/jemalloc
   2018-11-27 15:02:11 by Maya Rashish | Files touched by this commit (1)
Log message:
Replace, not append to WRKSRC/.cargo/config.
This may cause problems if there's already one.
Needed by rust librsvg.

Tested all cargo.mk users in pkgsrc.

Next | Query returned 87 messages, browsing 1 to 10 | Previous