Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 0.8 #17

Merged
merged 31 commits into from
Jul 12, 2020
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
dd6f598
update crate description
Robbepop Feb 27, 2020
08eed8d
add .rustfmt.toml
Robbepop Feb 27, 2020
b1436b9
add no_std compilation
Robbepop Feb 27, 2020
3fe9f58
add no_std support imports etc
Robbepop Feb 27, 2020
25997f2
move Symbol into its own sub module
Robbepop Feb 27, 2020
e15ffbb
adjust code for rename of Sym -> DefaultSymbol
Robbepop Feb 27, 2020
d08603e
apply rustfmt
Robbepop Feb 27, 2020
c1f3363
update license copyright years
Robbepop Feb 27, 2020
c7d0715
rename InternalStrRef to PinnedStr and use NonNull internally
Robbepop Feb 27, 2020
781e37e
tests: rename from InternalStrRef to PinnedStr
Robbepop Feb 27, 2020
3e70b94
make use of Pin<Box<str>> instead of Box<str>
Robbepop Feb 27, 2020
c0870d2
bump version 0.7.1 -> 0.8.0
Robbepop Feb 27, 2020
db2d45b
refactor benchmark suite using criterion
Robbepop Feb 27, 2020
2f18c7d
fix doc typo
Robbepop Mar 22, 2020
8f37361
[benches] change default bench sizes
Robbepop Mar 22, 2020
f0d37a1
remove giant bench file
Robbepop Mar 22, 2020
3790654
add word generator for bench tests
Robbepop Mar 22, 2020
d45c521
add IntoIterator impl for &StringInterner
Robbepop Jul 12, 2020
7d23fca
overhaul benchmarks for StringInterner
Robbepop Jul 12, 2020
20a74ed
add no_std compatibility module
Robbepop Jul 12, 2020
4f06f16
add module for iterator definitions
Robbepop Jul 12, 2020
a7d44c1
adjust rest of the crate for the 2 new module
Robbepop Jul 12, 2020
a5be761
adjust Cargo.toml for the no_std compilation model
Robbepop Jul 12, 2020
5aaf65a
minor improvements, add some inline annotations
Robbepop Jul 12, 2020
f541a60
apply rustfmt
Robbepop Jul 12, 2020
fd8e7ec
add GitHub CI workflow
Robbepop Jul 12, 2020
e5ea875
apply clippy suggestions
Robbepop Jul 12, 2020
49e04fb
remove AppVeyor CI (too slow)
Robbepop Jul 12, 2020
4357203
simplify Travis CI (too slow)
Robbepop Jul 12, 2020
85451ac
add release notes for 0.8
Robbepop Jul 12, 2020
863b868
minor additional note to release notes for 0.8
Robbepop Jul 12, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
max_width = 90 # changed
hard_tabs = false
tab_spaces = 4
newline_style = "Auto"
use_small_heuristics = "Default"
indent_style = "Block"
wrap_comments = false
format_code_in_doc_comments = false
comment_width = 80
normalize_comments = true # changed
normalize_doc_attributes = false
# license_template_path = "LICENSE_TEMPLATE" # changed
format_strings = false
format_macro_matchers = false
format_macro_bodies = true
empty_item_single_line = true
struct_lit_single_line = true
fn_single_line = false
where_single_line = false
imports_indent = "Block"
imports_layout = "Vertical" # changed
merge_imports = true # changed
reorder_imports = true
reorder_modules = true
reorder_impl_items = false
type_punctuation_density = "Wide"
space_before_colon = false
space_after_colon = true
spaces_around_ranges = false
binop_separator = "Front"
remove_nested_parens = true
combine_control_expr = false # changed
overflow_delimited_expr = false
struct_field_align_threshold = 0
enum_discrim_align_threshold = 0
match_arm_blocks = true
force_multiline_blocks = true # changed
fn_args_layout = "Tall"
brace_style = "SameLineWhere"
control_brace_style = "AlwaysSameLine"
trailing_semicolon = false # changed
trailing_comma = "Vertical"
match_block_trailing_comma = false
blank_lines_upper_bound = 1
blank_lines_lower_bound = 0
edition = "2018" # changed
version = "One"
merge_derives = true
use_try_shorthand = true # changed
use_field_init_shorthand = true # changed
force_explicit_abi = true
condense_wildcard_suffixes = false
color = "Auto"
unstable_features = true # changed
disable_all_formatting = false
skip_children = false
hide_parse_errors = false
error_on_line_overflow = false
error_on_unformatted = false
report_todo = "Always"
report_fixme = "Always"
ignore = []

# Below are `rustfmt` internal settings
#
# emit_mode = "Files"
# make_backup = false
27 changes: 17 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
[package]
name = "string-interner"
version = "0.7.1"
version = "0.8.0"
authors = ["Robbepop"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/robbepop/string-interner"
documentation = "https://docs.rs/string-interner"
keywords = ["interner", "intern", "string", "str", "symbol"]
description = """An efficient string interning data structure with minimal memory-footprint
and fast access to the underlying contents.
description = """An efficient string interning data structure with minimal memory footprint
and fast access to the underlying strings.
"""
categories = ["data-structures"]
edition = "2018"

[dependencies]
serde = { version = "1.0.0", optional = true }
cfg-if = "0.1.10"
serde = { version = "1.0", optional = true }

[dev-dependencies]
fnv = "1.0.0" # required bench tests
serde_json = "1.0.0" # required for testing the serde imlementation
lazy_static = "1.0.0" # required for bench tests
fnv = "1.0" # Required bench tests.
serde_json = "1.0" # Required for testing the serde implementation.
lazy_static = "1.0" # Required for benches.
criterion = "0.3.1" # Required for benches.

[[bench]]
name = "bench"
harness = false

[features]
default = ["serde_support"]
bench = []
serde_support = ["serde"]
default = ["std", "serde-1"]
std = []
bench = ["std"]
serde-1 = ["serde"]

[badges]
travis-ci = { repository = "Robbepop/string-interner" }
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APACHE License

Copyright 2017 Robin Freyler
Copyright 2020 Robin Freyler

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 by Robin Freyler
Copyright (c) 2020 by Robin Freyler

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading