Skip to content

Commit

Permalink
Remove nanoblog, SEO things
Browse files Browse the repository at this point in the history
  • Loading branch information
peng1999 committed Nov 18, 2024
1 parent 6eb7c48 commit 2bf1819
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 385 deletions.
2 changes: 1 addition & 1 deletion content/movie-2020.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ tags = ["movie"]

## 往年年度电影

- [2019 个人年度电影](@/nanoblog/movie-2019.md)
- [2019 个人年度电影](@/movie-2019.md)
4 changes: 2 additions & 2 deletions content/movie-2021.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ tags = ["movie"]

## 往年年度电影

- [2020 个人年度电影](@/nanoblog/movie-2020.md)
- [2019 个人年度电影](@/nanoblog/movie-2019.md)
- [2020 个人年度电影](@/movie-2020.md)
- [2019 个人年度电影](@/movie-2019.md)
6 changes: 0 additions & 6 deletions content/nanoblog/_index.md

This file was deleted.

60 changes: 0 additions & 60 deletions content/nanoblog/constexpr-string.md

This file was deleted.

27 changes: 0 additions & 27 deletions content/nanoblog/dvorak-symphony-9.md

This file was deleted.

35 changes: 0 additions & 35 deletions content/nanoblog/movie-2019.md

This file was deleted.

53 changes: 0 additions & 53 deletions content/nanoblog/movie-2020.md

This file was deleted.

26 changes: 0 additions & 26 deletions content/nanoblog/perl-hex.md

This file was deleted.

86 changes: 0 additions & 86 deletions content/nanoblog/ros-docker.md

This file was deleted.

53 changes: 0 additions & 53 deletions content/nanoblog/tikz.md

This file was deleted.

11 changes: 6 additions & 5 deletions content/rust-dylib-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ date = 2024-09-16
tags = ["rust", "programming"]
+++

有时候我们会希望通过 dlopen 来加载一个动态链接库,并且在主程序中和库中访问同一个全局变量。下面用 Rust 来实现一个 [MWE]

[MWE]: https://en.wikipedia.org/wiki/Minimal_reproducible_example

<!-- more -->

<style>
img {
max-width: 400px;
Expand All @@ -14,11 +20,6 @@ margin: auto;
}
</style>

有时候我们会希望通过 dlopen 来加载一个动态链接库,并且在主程序中和库中访问同一个全局变量。下面用 Rust 来实现一个 [MWE]

[MWE]: https://en.wikipedia.org/wiki/Minimal_reproducible_example

<!-- more -->

我们首先需要一个 binary 项目(main)和一个 cdylib 项目(liba.so),然后为了使两个项目共享同一个变量,它们依赖同一个 common crate。最终的项目结构如下:

Expand Down
Loading

0 comments on commit 2bf1819

Please sign in to comment.