Skip to content

Commit 312df11

Browse files
bors[bot]japaric
andcommitted
Merge #9
9: v0.1.0 r=japaric a=japaric Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2 parents 1ceb2bb + 774e47d commit 312df11

File tree

13 files changed

+200
-125
lines changed

13 files changed

+200
-125
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
language: rust
2+
rust: stable
23

34
matrix:
45
include:
6+
# MSRV
57
- env: TARGET=x86_64-unknown-linux-gnu
6-
rust: nightly
8+
rust: 1.31.0
9+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
10+
11+
- env: TARGET=x86_64-unknown-linux-gnu
12+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
13+
14+
# no-std sanity check
715
- env: TARGET=thumbv7m-none-eabi
8-
rust: nightly
16+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
17+
18+
# no-std sanity check
19+
- env: TARGET=rustfmt
20+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
921

1022
before_install: set -e
1123

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
## [Unreleased]
9+
10+
## [v0.1.0] - 2019-02-06
11+
12+
### Changed
13+
14+
- [breaking-change] The `heapless` dependency has been bumped to v0.4.0
15+
16+
- This crate now compiles on stable
17+
18+
## v0.0.1
19+
20+
Initial release
21+
22+
[Unreleased]: https://github.com/rust-embedded/cortex-m/compare/v0.5.8...HEAD

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
authors = ["Jorge Aparicio <jorge@japaric.io>"]
3+
edition = "2018"
34
name = "serde-json-core"
45
version = "0.1.0"
56

ci/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
set -euxo pipefail
22

33
main() {
4-
if [ $TARGET = thumbv7m-none-eabi ]; then
4+
if [ $TARGET != rustfmt ]; then
55
rustup target add $TARGET
6+
else
7+
rustup component add rustfmt
68
fi
79
}
810

ci/script.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
set -euxo pipefail
22

33
main() {
4+
if [ $TARGET = rustfmt ]; then
5+
cargo fmt -- --check
6+
return
7+
fi
8+
49
cargo check --target $TARGET
510

611
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
712
cargo test --target $TARGET
8-
cargo check --target $TARGET --features std
13+
914
return
1015
fi
1116
}
1217

13-
if [ $TRAVIS_BRANCH != master ]; then
18+
# fake Travis variables to be able to run this on a local machine
19+
if [ -z ${TRAVIS_BRANCH-} ]; then
20+
TRAVIS_BRANCH=auto
21+
fi
22+
23+
if [ -z ${TARGET-} ]; then
24+
TARGET=$(rustc -Vv | grep host | cut -d ' ' -f2)
25+
fi
26+
27+
if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_PULL_REQUEST != false ]; then
1428
main
1529
fi

src/de/enum_.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use serde::de;
2-
use de::{Deserializer, Error, Result};
2+
3+
use crate::de::{Deserializer, Error, Result};
34

45
pub(crate) struct UnitVariantAccess<'a, 'b>
56
where

src/de/map.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use serde::de::{self, Visitor};
22

3-
use de::{Deserializer, Error};
3+
use crate::de::{Deserializer, Error};
44

55
pub struct MapAccess<'a, 'b>
66
where
@@ -23,7 +23,8 @@ impl<'a, 'de> de::MapAccess<'de> for MapAccess<'a, 'de> {
2323
where
2424
K: de::DeserializeSeed<'de>,
2525
{
26-
let peek = match self.de
26+
let peek = match self
27+
.de
2728
.parse_whitespace()
2829
.ok_or(Error::EofWhileParsingObject)?
2930
{

0 commit comments

Comments
 (0)