repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/tree.rs
rust/rope/src/tree.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
true
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/find.rs
rust/rope/src/find.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/spans.rs
rust/rope/src/spans.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/breaks.rs
rust/rope/src/breaks.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/interval.rs
rust/rope/src/interval.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/multiset.rs
rust/rope/src/multiset.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/serde_impls.rs
rust/rope/src/serde_impls.rs
// Copyright 2019 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/compare.rs
rust/rope/src/compare.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/benches/diff.rs
rust/rope/benches/diff.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/benches/edit.rs
rust/rope/benches/edit.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/benches/cursors.rs
rust/rope/benches/cursors.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/examples/ropetoy.rs
rust/rope/examples/ropetoy.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/src/main.rs
rust/src/main.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rpc/src/lib.rs
rust/rpc/src/lib.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rpc/src/parse.rs
rust/rpc/src/parse.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rpc/src/test_utils.rs
rust/rpc/src/test_utils.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rpc/src/error.rs
rust/rpc/src/error.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rpc/tests/integration.rs
rust/rpc/tests/integration.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rpc/examples/try_chan.rs
rust/rpc/examples/try_chan.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/trace/src/lib.rs
rust/trace/src/lib.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
true
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/trace/src/sys_tid.rs
rust/trace/src/sys_tid.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/trace/src/fixed_lifo_deque.rs
rust/trace/src/fixed_lifo_deque.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/trace/src/sys_pid.rs
rust/trace/src/sys_pid.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/trace/src/chrome_trace_dump.rs
rust/trace/src/chrome_trace_dump.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/lib.rs
rust/experimental/lang/src/lib.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/parser.rs
rust/experimental/lang/src/parser.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/peg.rs
rust/experimental/lang/src/peg.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/main.rs
rust/experimental/lang/src/main.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/statestack.rs
rust/experimental/lang/src/statestack.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/language/rust.rs
rust/experimental/lang/src/language/rust.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/language/mod.rs
rust/experimental/lang/src/language/mod.rs
pub mod plaintext; pub mod rust;
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/src/language/plaintext.rs
rust/experimental/lang/src/language/plaintext.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/experimental/lang/benches/peg_tests.rs
rust/experimental/lang/benches/peg_tests.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/sample-plugin/src/main.rs
rust/sample-plugin/src/main.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/plugin-lib/src/lib.rs
rust/plugin-lib/src/lib.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/plugin-lib/src/view.rs
rust/plugin-lib/src/view.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/plugin-lib/src/dispatch.rs
rust/plugin-lib/src/dispatch.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/plugin-lib/src/core_proxy.rs
rust/plugin-lib/src/core_proxy.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/plugin-lib/src/state_cache.rs
rust/plugin-lib/src/state_cache.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/plugin-lib/src/base_cache.rs
rust/plugin-lib/src/base_cache.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
true
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/syntect-plugin/src/main.rs
rust/syntect-plugin/src/main.rs
// Copyright 2016 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/syntect-plugin/src/stackmap.rs
rust/syntect-plugin/src/stackmap.rs
// Copyright 2017 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/syntect-plugin/examples/make_manifest.rs
rust/syntect-plugin/examples/make_manifest.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/lib.rs
rust/lsp-lib/src/lib.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/lsp_plugin.rs
rust/lsp-lib/src/lsp_plugin.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/result_queue.rs
rust/lsp-lib/src/result_queue.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/types.rs
rust/lsp-lib/src/types.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/conversion_utils.rs
rust/lsp-lib/src/conversion_utils.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/utils.rs
rust/lsp-lib/src/utils.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/language_server_client.rs
rust/lsp-lib/src/language_server_client.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/parse_helper.rs
rust/lsp-lib/src/parse_helper.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
xi-editor/xi-editor
https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/lsp-lib/src/bin/xi-lsp-plugin.rs
rust/lsp-lib/src/bin/xi-lsp-plugin.rs
// Copyright 2018 The xi-editor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
rust
Apache-2.0
a2dea3059312795c77caadc639df49bf8a7008eb
2026-01-04T15:41:09.005987Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/reactive_stores_macro/src/lib.rs
reactive_stores_macro/src/lib.rs
use convert_case::{Case, Casing}; use proc_macro2::{Span, TokenStream}; use proc_macro_error2::{abort, abort_call_site, proc_macro_error, OptionExt}; use quote::{quote, ToTokens}; use syn::{ parse::{Parse, ParseStream, Parser}, punctuated::Punctuated, token::Comma, ExprClosure, Field, Fields, GenericPar...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/build.rs
leptos_macro/build.rs
use rustc_version::{version_meta, Channel}; fn main() { // Set cfg flags depending on release channel if matches!(version_meta().unwrap().channel, Channel::Nightly) { println!("cargo:rustc-cfg=rustc_nightly"); } }
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/slice.rs
leptos_macro/src/slice.rs
extern crate proc_macro; use proc_macro::TokenStream; use quote::{quote, ToTokens}; use syn::{ parse::{Parse, ParseStream}, parse_macro_input, punctuated::Punctuated, Token, }; struct SliceMacroInput { root: syn::Ident, path: Punctuated<syn::Member, Token![.]>, } impl Parse for SliceMacroInpu...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/lib.rs
leptos_macro/src/lib.rs
//! Macros for use with the Leptos framework. #![cfg_attr(all(feature = "nightly", rustc_nightly), feature(proc_macro_span))] #![forbid(unsafe_code)] // to prevent warnings from popping up when a nightly feature is stabilized #![allow(stable_features)] // FIXME? every use of quote! {} is warning here -- false positive...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
true
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/slot.rs
leptos_macro/src/slot.rs
use crate::component::{ convert_from_snake_case, drain_filter, is_option, unwrap_option, Docs, }; use attribute_derive::FromAttr; use proc_macro2::{Ident, TokenStream}; use quote::{quote, ToTokens, TokenStreamExt}; use syn::{ parse::Parse, parse_quote, Field, ItemStruct, LitStr, Meta, Type, Visibility, }; ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/params.rs
leptos_macro/src/params.rs
use quote::{quote, quote_spanned}; use syn::spanned::Spanned; pub fn params_impl(ast: &syn::DeriveInput) -> proc_macro::TokenStream { let name = &ast.ident; let fields = if let syn::Data::Struct(syn::DataStruct { fields: syn::Fields::Named(ref fields), .. }) = ast.data { fields...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/lazy.rs
leptos_macro/src/lazy.rs
use convert_case::{Case, Casing}; use proc_macro::TokenStream; use proc_macro2::Ident; use proc_macro_error2::abort; use quote::{format_ident, quote}; use std::{ hash::{DefaultHasher, Hash, Hasher}, mem, }; use syn::{parse_macro_input, parse_quote, ItemFn, ReturnType, Stmt}; pub fn lazy_impl(args: proc_macro::...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/memo.rs
leptos_macro/src/memo.rs
extern crate proc_macro; use proc_macro::TokenStream; use quote::{quote, ToTokens}; use syn::{ parse::{Parse, ParseStream}, parse_macro_input, punctuated::Punctuated, Token, }; struct MemoMacroInput { root: syn::Ident, path: Punctuated<syn::Member, Token![.]>, } impl Parse for MemoMacroInput ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/component.rs
leptos_macro/src/component.rs
use attribute_derive::FromAttr; use convert_case::{ Case::{Pascal, Snake}, Casing, }; use itertools::Itertools; use leptos_hot_reload::parsing::value_to_string; use proc_macro2::{Ident, Span, TokenStream}; use proc_macro_error2::abort; use quote::{format_ident, quote, quote_spanned, ToTokens, TokenStreamExt}; u...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
true
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/view/slot_helper.rs
leptos_macro/src/view/slot_helper.rs
use super::{ component_builder::maybe_optimised_component_children, convert_to_snake_case, full_path_from_tag_name, }; use crate::view::{fragment_to_tokens, utils::filter_prefixed_attrs, TagType}; use proc_macro2::{Ident, TokenStream, TokenTree}; use quote::{quote, quote_spanned}; use rstml::node::{CustomNode, ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/view/component_builder.rs
leptos_macro/src/view/component_builder.rs
use super::{ fragment_to_tokens, utils::is_nostrip_optional_and_update_key, TagType, }; use crate::view::{ attribute_absolute, text_to_tokens, utils::filter_prefixed_attrs, }; use proc_macro2::{Ident, TokenStream, TokenTree}; use quote::{format_ident, quote, quote_spanned}; use rstml::node::{ CustomNode, Ke...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/view/utils.rs
leptos_macro/src/view/utils.rs
use proc_macro2::Ident; use quote::format_ident; use rstml::node::{KeyedAttribute, NodeName}; use syn::{spanned::Spanned, ExprPath}; pub fn filter_prefixed_attrs<'a, A>(attrs: A, prefix: &str) -> Vec<Ident> where A: IntoIterator<Item = &'a KeyedAttribute> + Clone, { attrs .into_iter() .filter_m...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/src/view/mod.rs
leptos_macro/src/view/mod.rs
mod component_builder; mod slot_helper; mod utils; use self::{ component_builder::component_to_tokens, slot_helper::{get_slot, slot_to_tokens}, }; use convert_case::{ Case::{Snake, UpperCamel}, Casing, }; use leptos_hot_reload::parsing::{is_component_node, value_to_string}; use proc_macro2::{Ident, Spa...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
true
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/slice.rs
leptos_macro/tests/slice.rs
use leptos::prelude::RwSignal; use leptos_macro::slice; #[derive(Default)] pub struct OuterState { count: i32, inner: InnerState, } #[derive(Clone, PartialEq, Default)] pub struct InnerState { inner_count: i32, inner_tuple: InnerTuple, } #[derive(Clone, PartialEq, Default)] pub struct InnerTuple(Stri...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/params.rs
leptos_macro/tests/params.rs
use leptos::prelude::*; use leptos_router::params::Params; #[derive(PartialEq, Debug, Params)] struct UserInfo { user_id: Option<String>, email: Option<String>, r#type: Option<i32>, not_found: Option<i32>, } #[test] fn params_test() { let mut map = leptos_router::params::ParamsMap::new(); map....
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/ui.rs
leptos_macro/tests/ui.rs
#[cfg(not(feature = "__internal_erase_components"))] #[test] fn ui() { let t = trybuild::TestCases::new(); #[cfg(all(feature = "nightly", rustc_nightly))] t.compile_fail("tests/ui/component.rs"); #[cfg(all(feature = "nightly", rustc_nightly))] t.compile_fail("tests/ui/component_absolute.rs"); t....
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/server.rs
leptos_macro/tests/server.rs
#[cfg(not(feature = "ssr"))] pub mod tests { use leptos::{ server, server_fn::{codec, Http, ServerFn, ServerFnError}, }; use std::any::TypeId; #[test] fn server_default() { #[server] pub async fn my_server_action() -> Result<(), ServerFnError> { Ok(()) ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/memo.rs
leptos_macro/tests/memo.rs
use leptos::prelude::RwSignal; use leptos_macro::memo; #[derive(Default)] pub struct OuterState { count: i32, inner: InnerState, } #[derive(Clone, PartialEq, Default)] pub struct InnerState { inner_count: i32, inner_tuple: InnerTuple, } #[derive(Clone, PartialEq, Default)] pub struct InnerTuple(Strin...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/component.rs
leptos_macro/tests/component.rs
use core::num::NonZeroUsize; use leptos::prelude::*; #[derive(PartialEq, Debug)] struct UserInfo { user_id: String, email: String, } #[derive(PartialEq, Debug)] struct Admin(bool); #[component] fn Component( #[prop(optional)] optional: bool, #[prop(optional, into)] optional_into: Option<String>, ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/slice/red.rs
leptos_macro/tests/slice/red.rs
use leptos_macro::slice; use leptos::prelude::RwSignal; #[derive(Default, PartialEq)] pub struct OuterState { count: i32, inner: InnerState, } #[derive(Clone, PartialEq, Default)] pub struct InnerState { inner_count: i32, inner_name: String, } fn main() { let outer_signal = RwSignal::new(OuterSta...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/ui/component_absolute.rs
leptos_macro/tests/ui/component_absolute.rs
#[cfg(all(feature = "nightly", rustc_nightly))] #[::leptos::component] fn missing_return_type() {} #[cfg(all(feature = "nightly", rustc_nightly))] #[::leptos::component] fn unknown_prop_option(#[prop(hello)] test: bool) -> impl ::leptos::IntoView { _ = test; } #[cfg(all(feature = "nightly", rustc_nightly))] #[::l...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/ui/server.rs
leptos_macro/tests/ui/server.rs
use leptos::prelude::*; #[server(endpoint = "my_path", FooBar)] pub async fn positional_argument_follows_keyword_argument( ) -> Result<(), ServerFnError> { Ok(()) } #[server(endpoint = "first", endpoint = "second")] pub async fn keyword_argument_repeated() -> Result<(), ServerFnError> { Ok(()) } #[server(Foo...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/ui/component.rs
leptos_macro/tests/ui/component.rs
use leptos::prelude::*; #[cfg(all(feature = "nightly", rustc_nightly))] #[component] fn missing_scope() {} #[cfg(all(feature = "nightly", rustc_nightly))] #[component] fn missing_return_type() {} #[cfg(all(feature = "nightly", rustc_nightly))] #[component] fn unknown_prop_option(#[prop(hello)] test: bool) -> impl In...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/tests/memo/red.rs
leptos_macro/tests/memo/red.rs
use leptos::prelude::RwSignal; use leptos_macro::memo; #[derive(Default, PartialEq)] pub struct OuterState { count: i32, inner: InnerState, } #[derive(Clone, PartialEq, Default)] pub struct InnerState { inner_count: i32, inner_name: String, } fn main() { let outer_signal = RwSignal::new(OuterStat...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/leptos_macro/example/src/lib.rs
leptos_macro/example/src/lib.rs
use leptos::prelude::*; #[component] pub fn TestComponent( /// Rust code /// ``` /// assert_eq!("hello", stringify!(hello)); /// ``` /// View containing rust code /// ```view /// assert!(true); /// ``` /// View containing rsx /// ```view /// # use example::TestComponent; ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/build.rs
tachys/build.rs
use rustc_version::{version_meta, Channel}; fn main() { // Set cfg flags depending on release channel if matches!(version_meta().unwrap().channel, Channel::Nightly) { println!("cargo:rustc-cfg=rustc_nightly"); } }
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/lib.rs
tachys/src/lib.rs
//! Allows rendering user interfaces based on a statically-typed view tree. //! //! This view tree is generic over rendering backends, and agnostic about reactivity/change //! detection. // this is specifically used for `unsized_const_params` below // this allows us to use const generic &'static str for static text no...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/hydration.rs
tachys/src/hydration.rs
use crate::{ renderer::{CastFrom, Rndr}, view::{Position, PositionState}, }; #[cfg(any(debug_assertions, leptos_debuginfo))] use std::cell::Cell; use std::{cell::RefCell, panic::Location, rc::Rc}; use web_sys::{Comment, Element, Node, Text}; #[cfg(feature = "mark_branches")] const COMMENT_NODE: u16 = 8; /// H...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/erased.rs
tachys/src/erased.rs
use erased::ErasedBox; #[cfg(not(erase_components))] fn check(id_1: &std::any::TypeId, id_2: &std::any::TypeId) { if id_1 != id_2 { panic!("Erased: type mismatch") } } macro_rules! erased { ([$($new_t_params:tt)*], $name:ident) => { /// A type-erased item. This is slightly more efficient t...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/dom.rs
tachys/src/dom.rs
use wasm_bindgen::JsCast; use web_sys::{Document, HtmlElement, Window}; thread_local! { pub(crate) static WINDOW: web_sys::Window = web_sys::window().unwrap(); pub(crate) static DOCUMENT: web_sys::Document = web_sys::window().unwrap().document().unwrap(); } /// Returns the [`Window`](https://developer.mozill...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/oco.rs
tachys/src/oco.rs
use crate::{ html::{ attribute::{any_attribute::AnyAttribute, AttributeValue}, class::IntoClass, property::IntoProperty, style::IntoStyle, }, hydration::Cursor, no_attrs, prelude::{Mountable, Render, RenderHtml}, renderer::Rndr, view::{strings::StrState, Posit...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/renderer/sledgehammer.rs
tachys/src/renderer/sledgehammer.rs
#![allow(missing_docs)] // Allow missing docs for experimental backend use super::{CastFrom, DomRenderer, RemoveEventHandler, Renderer}; use crate::{ dom::window, view::{Mountable, ToTemplate}, }; use linear_map::LinearMap; use rustc_hash::FxHashSet; use sledgehammer_bindgen::bindgen; use std::{ any::TypeI...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/renderer/mod.rs
tachys/src/renderer/mod.rs
use crate::view::{Mountable, ToTemplate}; use std::{borrow::Cow, fmt::Debug, marker::PhantomData}; use wasm_bindgen::JsValue; /// A DOM renderer. pub mod dom; /// The renderer being used for the application. /// /// ### Note /// This was designed to be included as a generic on view types, to support different renderi...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/renderer/dom.rs
tachys/src/renderer/dom.rs
#![allow(missing_docs)] //! See [`Renderer`](crate::renderer::Renderer) and [`Rndr`](crate::renderer::Rndr) for additional information. use super::{CastFrom, RemoveEventHandler}; use crate::{ dom::{document, window}, ok_or_debug, or_debug, view::{Mountable, ToTemplate}, }; use linear_map::LinearMap; use r...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/renderer/mock_dom.rs
tachys/src/renderer/mock_dom.rs
#![allow(unused)] //! A stupidly-simple mock DOM implementation that can be used for testing. //! //! Do not use this for anything real. use super::{CastFrom, DomRenderer, RemoveEventHandler, Renderer}; use crate::{ html::element::{CreateElement, ElementType}, view::Mountable, }; use indexmap::IndexMap; use s...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/ssr/mod.rs
tachys/src/ssr/mod.rs
use crate::{ html::attribute::any_attribute::AnyAttribute, view::{Position, RenderHtml}, }; use futures::Stream; use std::{ collections::VecDeque, fmt::{Debug, Write}, future::Future, mem, pin::Pin, sync::Arc, task::{Context, Poll}, }; /// Manages streaming HTML rendering for the re...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/mathml/mod.rs
tachys/src/mathml/mod.rs
use crate::{ html::{ attribute::{Attr, Attribute, AttributeValue, NextAttribute}, element::{ElementType, ElementWithChildren, HtmlElement}, }, view::Render, }; use std::fmt::Debug; macro_rules! mathml_global { ($tag:ty, $attr:ty) => { paste::paste! { /// A MathML attribute. ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/event.rs
tachys/src/html/event.rs
use crate::{ html::attribute::{ maybe_next_attr_erasure_macros::next_attr_combine, Attribute, NamedAttributeKey, }, renderer::{CastFrom, RemoveEventHandler, Rndr}, view::{Position, ToTemplate}, }; use send_wrapper::SendWrapper; use std::{ borrow::Cow, cell::RefCell, fmt::Debu...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/class.rs
tachys/src/html/class.rs
use super::attribute::{ maybe_next_attr_erasure_macros::next_attr_output_type, Attribute, NamedAttributeKey, NextAttribute, }; use crate::{ html::attribute::maybe_next_attr_erasure_macros::next_attr_combine, renderer::Rndr, view::{Position, ToTemplate}, }; use std::{borrow::Cow, future::Future, sync...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/directive.rs
tachys/src/html/directive.rs
use super::attribute::{ maybe_next_attr_erasure_macros::next_attr_output_type, Attribute, NextAttribute, }; use crate::{ html::attribute::{ maybe_next_attr_erasure_macros::next_attr_combine, NamedAttributeKey, }, prelude::AddAnyAttr, view::{Position, ToTemplate}, }; use send_wrapper::Sen...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/node_ref.rs
tachys/src/html/node_ref.rs
use super::{ attribute::{ maybe_next_attr_erasure_macros::next_attr_output_type, Attribute, NextAttribute, }, element::ElementType, }; use crate::{ html::{ attribute::{ maybe_next_attr_erasure_macros::next_attr_combine, NamedAttributeKey, }, ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/mod.rs
tachys/src/html/mod.rs
use self::attribute::Attribute; use crate::{ hydration::Cursor, no_attrs, prelude::{AddAnyAttr, Mountable}, renderer::{ dom::{Element, Node}, CastFrom, Rndr, }, view::{Position, PositionState, Render, RenderHtml}, }; use attribute::any_attribute::AnyAttribute; use std::borrow::Co...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/style.rs
tachys/src/html/style.rs
use super::attribute::{ maybe_next_attr_erasure_macros::next_attr_output_type, Attribute, NextAttribute, }; #[cfg(all(feature = "nightly", rustc_nightly))] use crate::view::static_types::Static; use crate::{ html::attribute::{ maybe_next_attr_erasure_macros::next_attr_combine, NamedAttributeKey, ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/property.rs
tachys/src/html/property.rs
use super::attribute::{ maybe_next_attr_erasure_macros::next_attr_output_type, Attribute, NextAttribute, }; use crate::{ html::attribute::{ maybe_next_attr_erasure_macros::next_attr_combine, NamedAttributeKey, }, renderer::Rndr, view::{Position, ToTemplate}, }; use send_wrapper::SendWrap...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/islands.rs
tachys/src/html/islands.rs
use super::attribute::{any_attribute::AnyAttribute, Attribute}; use crate::{ hydration::Cursor, prelude::{Render, RenderHtml}, ssr::StreamBuilder, view::{add_attr::AddAnyAttr, Position, PositionState}, }; /// An island of interactivity in an otherwise-inert HTML document. pub struct Island<View> { ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/element/mod.rs
tachys/src/html/element/mod.rs
#[cfg(any(debug_assertions, leptos_debuginfo))] use crate::hydration::set_currently_hydrating; #[cfg(erase_components)] use crate::view::any_view::AnyView; use crate::{ html::attribute::Attribute, hydration::{failed_to_cast_element, Cursor}, renderer::{CastFrom, Rndr}, ssr::StreamBuilder, view::{ ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/element/elements.rs
tachys/src/html/element/elements.rs
use crate::{ html::{ attribute::{Attr, Attribute, AttributeValue, NextAttribute}, element::{ElementType, ElementWithChildren, HtmlElement}, }, view::Render, }; use std::fmt::Debug; macro_rules! html_element_inner { ( #[$meta:meta] $tag:ident $struct_name:ident ...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
true
leptos-rs/leptos
https://github.com/leptos-rs/leptos/blob/dd507168fa47b5eead64339431b0bd654bd1c951/tachys/src/html/element/element_ext.rs
tachys/src/html/element/element_ext.rs
use crate::{ html::{ attribute::Attribute, class::IntoClass, event::{on, EventDescriptor}, style::IntoStyle, }, renderer::RemoveEventHandler, }; use wasm_bindgen::JsValue; use web_sys::Element; /// Extends an HTML element, allowing you to add attributes and children to the /...
rust
MIT
dd507168fa47b5eead64339431b0bd654bd1c951
2026-01-04T15:41:20.302544Z
false