Skip to content

Commit

Permalink
Re-expose AccessorIter::new
Browse files Browse the repository at this point in the history
  • Loading branch information
alteous committed Mar 5, 2018
1 parent 16949b0 commit 6c37268
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

The `gltf` crate adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.10.0] - 2017-12-03
## [0.10.1] - 2018-03-05

### Fixed

- `gltf_utils::AccessorIter::new` is marked `pub` again.

## [0.10.0] - 2018-03-04

### Added

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gltf"
version = "0.10.0"
version = "0.10.1"
authors = ["David Harvey-Macaulay <[email protected]>"]
description = "glTF 2.0 loader"
documentation = "https://docs.rs/gltf"
Expand Down Expand Up @@ -29,7 +29,7 @@ approx = "0.1.1"
[dependencies]
byteorder = "1.1"
cgmath = "0.15"
gltf-json = { path = "gltf-json", version = "0.10.0" }
gltf-json = { path = "gltf-json", version = "0.10.1" }
lazy_static = "0.2"

[features]
Expand Down
2 changes: 1 addition & 1 deletion gltf-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gltf-derive"
version = "0.10.0"
version = "0.10.1"
authors = ["David Harvey-Macaulay <[email protected]>"]
description = "Internal macros for the gltf crate"
repository = "https://github.com/gltf-rs/gltf"
Expand Down
6 changes: 3 additions & 3 deletions gltf-importer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "gltf-importer"
version = "0.10.0"
version = "0.10.1"
authors = ["David Harvey-Macaulay <[email protected]>"]
description = "Reference importer for the gltf crate"
repository = "https://github.com/gltf-rs/gltf"
license = "MIT/Apache-2.0"

[dependencies]
base64 = "0.6"
gltf = { path = "..", version = "0.10.0" }
gltf-utils = { path = "../gltf-utils", version = "0.10.0" }
gltf = { path = "..", version = "0.10.1" }
gltf-utils = { path = "../gltf-utils", version = "0.10.1" }

[features]
default = []
Expand Down
4 changes: 2 additions & 2 deletions gltf-json/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "gltf-json"
version = "0.10.0"
version = "0.10.1"
authors = ["David Harvey-Macaulay <[email protected]>"]
description = "JSON parsing for the gltf crate"
repository = "https://github.com/gltf-rs/gltf"
license = "MIT/Apache-2.0"

[dependencies]
gltf-derive = { path = "../gltf-derive", version = "0.10.0" }
gltf-derive = { path = "../gltf-derive", version = "0.10.1" }
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions gltf-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "gltf-utils"
version = "0.10.0"
version = "0.10.1"
authors = ["David Harvey-Macaulay <[email protected]>"]
description = "Utilities to complement the gltf crate"
repository = "https://github.com/gltf-rs/gltf"
license = "MIT/Apache-2.0"

[dependencies]
byteorder = "1.1"
gltf = { path = "..", version = "0.10.0" }
gltf = { path = "..", version = "0.10.1" }

[features]
default = []
Expand Down
8 changes: 5 additions & 3 deletions gltf-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ pub struct AccessorIter<'a, T> {
}

impl<'a, T> AccessorIter<'a, T> {
fn new<S>(accessor: gltf::Accessor, source: &'a S) -> AccessorIter<'a, T>
where S: Source
{
/// Constructor.
pub fn new<S: Source>(
accessor: gltf::Accessor,
source: &'a S,
) -> AccessorIter<'a, T> {
debug_assert_eq!(size_of::<T>(), accessor.size());
debug_assert!(size_of::<T>() > 0);
let view = accessor.view();
Expand Down

0 comments on commit 6c37268

Please sign in to comment.