Skip to content

Commit 3d6f36e

Browse files
authored
Rename (#27)
* rename * fix: readme * fix: README
1 parent e479506 commit 3d6f36e

25 files changed

Lines changed: 129 additions & 123 deletions

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,26 @@
88

99
[![GitHub Actions Status](https://github.com/bokuweb/docx-rs/workflows/Continuous%20Integration/badge.svg)](https://github.com/bokuweb/docx-rs/actions)
1010

11+
## install
12+
13+
```
14+
[dependencies]
15+
docx-rs = "0.2.0"
16+
```
17+
1118
## Example
1219

1320
```rust
14-
use docx_core::*;
21+
use docx_rs::*;
1522

1623
pub fn hello() -> Result<(), DocxError> {
17-
let path = std::path::Path::new("./hello.docx");
18-
let file = std::fs::File::create(&path).unwrap();
19-
Docx::new()
20-
.add_paragraph(Paragraph::new().add_run(Run::new().add_text("Hello")))
21-
.build()
22-
.pack(file)?;
23-
Ok(())
24+
let path = std::path::Path::new("./hello.docx");
25+
let file = std::fs::File::create(&path).unwrap();
26+
Docx::new()
27+
.add_paragraph(Paragraph::new().add_run(Run::new().add_text("Hello")))
28+
.build()
29+
.pack(file)?;
30+
Ok(())
2431
}
2532
```
2633

docx-core/Cargo.toml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
[package]
2-
name = "docx-core"
3-
version = "0.1.0"
2+
name = "docx-rs"
3+
version = "0.2.0"
44
authors = ["bokuweb <bokuweb12@gmail.com>"]
5+
repository = "https://github.com/bokuweb/docx-rs"
56
edition = "2018"
7+
license = "MIT"
8+
readme = "../README.md"
9+
description = "A .docx file generater with Rust/WebAssembly."
10+
keywords = [
11+
"office",
12+
"word",
13+
"docx",
14+
]
15+
16+
[lib]
17+
name = "docx_rs"
18+
path = "src/lib.rs"
619

720
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
821

@@ -13,4 +26,5 @@ thiserror = "1.0"
1326
zip = { version = "0.5", default-features = false }
1427

1528
[dev-dependencies]
16-
pretty_assertions = "*"
29+
pretty_assertions = "0.6.1"
30+

docx-core/examples/alignment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use docx_core::*;
1+
use docx_rs::*;
22

33
pub fn main() -> Result<(), DocxError> {
44
let path = std::path::Path::new("./alignment.docx");

docx-core/examples/comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use docx_core::*;
1+
use docx_rs::*;
22

33
pub fn main() -> Result<(), DocxError> {
44
let path = std::path::Path::new("./comment.docx");

docx-core/examples/hello.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use docx_core::*;
1+
use docx_rs::*;
22

33
pub fn main() -> Result<(), DocxError> {
44
let path = std::path::Path::new("./output/hello.docx");

docx-core/examples/history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use docx_core::*;
1+
use docx_rs::*;
22

33
pub fn main() -> Result<(), DocxError> {
44
let path = std::path::Path::new("./history.docx");

docx-core/examples/indent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use docx_core::*;
1+
use docx_rs::*;
22

33
pub const DUMMY: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
44

docx-core/examples/numbering.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use docx_core::*;
1+
use docx_rs::*;
2+
23

34
pub fn main() -> Result<(), DocxError> {
45
let path = std::path::Path::new("./numbering.docx");

docx-core/examples/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use docx_core::*;
1+
use docx_rs::*;
22

33
pub fn main() -> Result<(), DocxError> {
44
let path = std::path::Path::new("./table.docx");

0 commit comments

Comments
 (0)